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

Aligned sensostar mqtt discovery to updated underlying sensostar driver #49

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ovettel
Copy link
Contributor

@ovettel ovettel commented Nov 27, 2024

  • Replaced current_status field with status (which is the one provided by the underlying sensostar driver)
  • Removed meter_timestamp, since it's (currently) not provided by the underlying driver (and probably overhead, anyways)

Both changes will fix warning messages when new telegrams arrive and get parsed my mqtt

@weetmuts weetmuts merged commit f1cbf75 into wmbusmeters:main Nov 27, 2024
1 check passed
@weetmuts
Copy link
Member

Thanks! Please join this conversation: wmbusmeters/wmbusmeters#927

My hope is that we can automate the generation of the mqtt discovery messages.
New drivers are written in xmq see drivers/src (xml which can also be converted in to json).

The --metershell=....
is invoked when the first telegram arrives and the shellscript gets METER_DRIVER which is the generic source for the meter and the actual decoded content METER_JSON which also includes back references into the meter driver.

With this we should be able to compose a complete mqtt discovery message.

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.

2 participants