Closed h4nc closed 5 years ago
Retain flag is already set, has to be an issue with my config in ha.
@h4nc Did you resolve your issue as I've just come across this today too?
Yes, my values show up after a ha restart but to be honest I don't remember what solved this.
I think adding force_update: true
to my mqtt sensor configuration fixed it for me. Please let me know if this solves your issue too.
Ah yes, force_update
. That's the one! Thank you.
When I restart home assistant the initial values of my plant sensors are unknown.
This first paragraph here https://www.home-assistant.io/components/sensor.mqtt/
tells us that the retain flag has to be set to avoid this.
Is it possible to set the retain flag in the configuration file?