Hello!
Im creating heating zones, using Shelly TRVs. I noticed those TRVs are going constantly on and off the network (wifi).
I know they have their own presets, so I can schedule day/time/temperature periods on each TRV.
But, I would like to be able to do this from HA - so I can apply the same logic to all other (Zigbee etc) TRVs.
My questions is - what is the best approach to trustfully set target temperature?
Currently, if shelly goes offline, I can see “set_temperature failed” error. Similar experience when clicking on “generic_thermostat” UI, in case TRV is not on wifi at that moment.
If I use MQTT, without retain flag, it needs to be online when sending MQTT message.
If I use retain flag, it will create lot of mess later - does not seem like good approach.
I’m thinking about having a loop, that would send MQTT command (no_retain) with target_temp, and repeat this every e.g. 15 seconds, until I got MQTT confirming target_temp is set according my wishes.
Basically, sending MQTT command until it “catches” TRV present on wifi.
Does it make sense, is there some other way of doing it ? This seems to be easy and “good enough” solution - in order to avoid kids waking up in cold room.
Is there any other way of achiving the same ?
Thanks!