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 support for HA auto config & move config to YAML #9

Merged
merged 5 commits into from
Feb 8, 2022

Conversation

apnar
Copy link

@apnar apnar commented May 5, 2021

Note: built on top of my previous PR so I'll close that one.

This PR adds support for Home Assistant's MQTT Discovery to allow for automatic creation of entities and properly grouping those entities into Devices within HA. It also moves to a more forgiving YAML based config file and adds support for authenticated MQTT servers. Lastly some small tweaks including a Makefile and systemd service. I've attempted to update the documentation and test as best I could (although I only have a single type of device).

Unfortunately to use auto discovery there needed to be a few breaking changes to the payloads (HA didn't like : in the topic names or values with '-' in them inside the payload). Setting publish_type & auto_configure to 0 should allow it to act the same as it did previously.

This should close out the various issues requesting these features (#4, #5, & #7)

@apnar apnar force-pushed the feature/auto-config branch from 451ae2c to ce728e9 Compare May 6, 2021 19:33
@apnar
Copy link
Author

apnar commented May 7, 2021

Also just added support for pvvx's custom packet format for the LYWSD03MMC. Switching to it lets you get more resolution on humidity.

@tconnz
Copy link

tconnz commented May 30, 2021

(Comment removed/edited)

@deepcoder deepcoder merged commit 10a0cfc into deepcoder:main Feb 8, 2022
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.

3 participants