Skip to content

Introduce MQTT auto discovery for Home Assistant #11

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

Merged
merged 29 commits into from
Feb 24, 2024
Merged

Conversation

rjpearce
Copy link
Owner

@rjpearce rjpearce commented Feb 24, 2024

  • Implemented MQTT auto discovery for home assistant - no more manual config!
  • Added a new refresh option for each register allowing some registers to be read more regularly (fresher) than other that are less important (i.e serial number)
  • Added registers for serial number, software version, hardware version.
  • The script now retains a local dict of data which is updated after reading registers for this iteration (based on refresh)
  • After an iteration the entire dict (JSON) is sent to a new topic sofar/state_all'
  • Added a new option for LEGACY_PUBLISH to continue to send messages individually in addition to sofar/state_all.
  • Introduce Signal handling to ensure graceful exit

@rjpearce rjpearce added this to the 3.0 milestone Feb 24, 2024
@rjpearce rjpearce merged commit 8d49934 into main Feb 24, 2024
@rjpearce rjpearce deleted the mqtt_auto_discovery branch February 24, 2024 21:45
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