Hello, my sensor sleeps for about 3.5 hours between measurements. When I reboot HA during the sleep the sensor shows unavailable. I thought it should be fixed by setting discovery_retain: true, but this is default setting so I do not need to have in esphome yaml config, right?
The problem is that it seems that HA cannot wait 3.5 hours for next sensor value and shows it as unavailable. What is the maximum time I need to refresh mqtt sensor so the HA shows its value all time?
May I please ask how to do it? I have seen tens of posts that I need to “retain”, but I was searching for example and could not find it neither here or on esphome.io.