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

Add home-assistant discovery topics #44

Open
volca02 opened this issue Jan 24, 2021 · 1 comment
Open

Add home-assistant discovery topics #44

volca02 opened this issue Jan 24, 2021 · 1 comment

Comments

@volca02
Copy link
Owner

volca02 commented Jan 24, 2021

After stabilising what should be in the JSON for the HVAC devices, add a templated discovery topic with every client as they are first discovered, and publish this after every reconnect.

https://www.home-assistant.io/docs/mqtt/discovery/

@volca02
Copy link
Owner Author

volca02 commented Jul 28, 2023

It would be much easier if such a string would be pre-formatted, with some special characters to be replaced with address. For that, we would be better off using fixed 2 characters for MQTT topic for the rest of the system, so that we don't have to erase any characters when composing such a string. But even now, we know we have at most 2 characters for the address part of mqtt topic, so such thing can be pre-prepared and a loop can be used to copy characters

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

No branches or pull requests

1 participant