flora icon indicating copy to clipboard operation
flora copied to clipboard

Sensor have no value in HA after restart (no retain)

Open gericho opened this issue 5 years ago • 1 comments

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

gericho avatar Sep 11 '19 08:09 gericho

You can solve this by adding true to the client.publish, like this: client.publish((baseTopic + "temperature").c_str(), buffer, true);

XMaarten avatar Jan 07 '20 22:01 XMaarten