-
Notifications
You must be signed in to change notification settings - Fork 88
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 #154
Comments
While I remember, here's the full config for manually adding the enviro weather board to HASS (using Mosquitto). Add this to your configuration.yaml file then restart HASS. I've left the battery voltage option for when that's returned. It only adds the entities though, rather than a full device. It's also worth noting that Home Assistant doesn't seem to be able to support multiple data packets at once based on their timestamp. It doesn't matter much for me since mine only seems to be outputting a single result anyway despite being set to take new readings every 15 minutes and publishing after 10 readings, but it would be nice to have more frequent updates AND support for that data to be mapped correctly in Home Assistant.
|
I ran into the same issue when posting my data into Home Assistant - as far as I can tell it has no concept of historical data, so it just associates all the data with the time it is posted in. To get round this, I ended up getting my Enviros to post into InfluxDB and hooked my Influx DB instance up to Home Assistant/Grafana. I've not had much luck getting MQTT auto-discovery working generally with Home Assistant - if someone does work out the magic incantations for Enviro I'd be super interested to know them :) |
Yeah - Influx is a must-have with HASS, and happily the InfluxDB addon is really simple to set up and get working! Still, as far as I can tell it still uses time-of-arrival rather than the timestamp included (at least via MQTT). While I'm here again, since I've had to update to V0.0.9 as the shipping version flat out stopped working for me, I've updated my HASS config to support the new format: |
#156 Just popping back to say I did it :) |
I'd love if these boards could actually be discovered by Home Assistant so it can add them as an MQTT device. As it stands you have to edit your configuration.yaml file to manually add entities, but other devices offer HASS discovery. This post here details the discovery MQTT command nicely - and I think just an extra toggle in the MQTT settings menu for "Home Assistant Discovery" would be perfect.
I don't have much experience in python or with RP2040's yet, so I'm not sure I'm qualified to write this feature myself, but if I get the chance I'll certainly give it a go - but anyone more qualified is more than welcome to do it better than I can anyway!
The text was updated successfully, but these errors were encountered: