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

New feature: --mqtt-topic #31

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

HQJaTu
Copy link
Contributor

@HQJaTu HQJaTu commented Aug 12, 2024

MQTT shouldn't be that tightly coupled into Home Assistant.
In MQTT there is no discovery, in Home Assistant there is.
As there might be multiple subscribes to change topic, binding it with a hard-coded value into Home Assistant isn't especially good approach.

Having the topic default into previous value, there is no breaking change. However, soft-coding the topic improves feasibility to any setup, enabling the MQTT topics to be arranged as best suited.

Note:
As Home Assistant depends heavily with the discovery and given discovery topic can not be changed, moving the actual data feed does not break existing Home Assistant setups at all. HA simply reads the data from new topics without gaps in the existing data.

@wasilukm
Copy link
Owner

The PR contains more changes than described. Could you please limit them to only changes related to MQTT topic? This will make review and verification easier.

@HQJaTu
Copy link
Contributor Author

HQJaTu commented Aug 12, 2024

These PRs aren't moving and I'm working on multiple issues.
Looks like I goofed up with git.

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