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

Home Assistant (HASS) Discovery via MQTT #156

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

Conversation

andymanic
Copy link

I've added Home Assistant discovery to the MQTT destination for all four Enviro boards. It's not absolutely perfect as wind direction and gas resistance aren't detected currently since HASS doesn't have a device class for direction or resistance, but other than that I believe all other entities should work. I've tested this with my Enviro Weather board but since I don't have the other three boards I can't say for sure that those ones will detect.

This could also be improved for the small group of people who change their HASS MQTT discovery term by replacing the checkbox on the setup page with another text entry field and if the text field is empty the code won't fire the HASS discovery publishes. But I'm burned out enough as it is so a checkbox will have to do.

image
Here's it in my Home Assistant client to show it's working.

@ZodiusInfuser ZodiusInfuser added the enhancement New feature or request label Jul 10, 2023
@CBDesignS
Copy link

CBDesignS commented Nov 27, 2023

the dashboard looks good. I am strugling to get past an error adding the mqtt manually as HA seems to have changed the way its used. Is there a compiled firmware with discovery enabled or do I have to wait and hope the maintainer can add this pull request into main code and compile it for us ordinary unskilled users..

Adding and configuring this has NOT been fun but its now working so so on 27th Nov 2023.

I will add my mqtt.yaml file snip once I work out how to keep the formatting as is and not get destroyed by the editor (indents are the bane of my life)

a look at the weather dashboard:-
screen

mqtt.yaml.log

Good work andymanic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants