I was looking for a way to reset my Radio Thermostat CT50 after making a temporary temperature set point change via the Lovelace thermostat card. It used to be (pre HA 0.96) that you could just toggle the thermostat into “away” mode and then back out of it and it would reset the thermostat to its regular schedule.
v. 0.96+ of HA has made massive changes to the climate component (some of which seem to me to be functional regressions) and one result of that refactoring is that the Radio Thermostat component no longer has “away” mode functionality.
I discovered that resetting the date/time on the device also re-sets any temporary temp holds, effectively accomplishing the same thing that switching into and out of away mode used to do. The component actually has an internal function that sets the time but it is not exposed.
I created the following shell_command
that simply gets the current datetime from the thermostat and then re-sets it to that same datetime which effectively wipes out any temporary hold temperature.
Where you see X.X.X.X, please substitute the IP of your thermostat. This is only tested on the CT50 v. 1.9.4 because that’s all I’ve got. But my guess is that this should work with any Radio Thermostat device.
shell_command:
reset_thermostat: DATE=`curl -s "X.X.X.X/tstat/time"` && DATA='{"time":'$DATE'}' && curl "X.X.X.X/tstat" -d "$DATA" -X POST
If anyone knows a cleaner or more elegant way to reset the thermostat from HA, I’m all ears.