flora
flora copied to clipboard
Sensor have no value in HA after restart (no retain)
Thank you very much for this piece of software, this is awesome! Just to understand, if it is possible to send the MQTT with the retian flag so after a Home Assistant restart, it'll show the last value instead of waiting half an hour in order to retrieve the new one. Is that possible?
Thank you
You can solve this by adding true to the client.publish, like this:
client.publish((baseTopic + "temperature").c_str(), buffer, true);