Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tasmota #14

Merged
merged 7 commits into from
Jul 18, 2020
Merged

Support tasmota #14

merged 7 commits into from
Jul 18, 2020

Conversation

hikhvar
Copy link
Owner

@hikhvar hikhvar commented Jul 16, 2020

This PR add support for tasmota based devices. I test it with the Gosund SP111 device.
There are two major changes in this PR:

  1. The device ID can be specified by an regex. This regex is applied to the topic path. Thus the device ID can be located everywhere in the topic path.
  2. Since tasmota produces nested json object payloads, the json name of the metric will be converted to an gojsonq path.

This PR should not change any old configuration. Thus it will be downward compatible.

Checklist:

  • DeviceID regex
  • gojsonq support
  • tasmota documentation

Christoph Petrausch added 4 commits July 18, 2020 18:02
The device firmware tasmota places the device ID in the middle of the
topic path. To support those devices to this commit introduce the
device_id_regex configuration. The old behavior of the last element of
the topic path is unchanged.
@hikhvar hikhvar changed the title WIP: Support tasmota Support tasmota Jul 18, 2020
@hikhvar hikhvar merged commit 09cc6b1 into master Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant