Thanks for that
DH updated from the code pasted above.
For the app i might be able to offer you somewhere to start? I’ve just added the capability “Thermostat” to your code so that I can use it with another app that I already have installed . The app in question comes courtesy of @meavydev and can be found here:
I’ve just applied a schedule to a Danfoss TRV (which is no selectable form the app following the addition of the thermostat capability).
I’ve seen it change the set point. I’m just waiting for a wakeup.
edit: all looks to be working well. FYI. I’m pretty sure that the minimum wakeup for the Danfoss TRV is 5 mins.
Top job. Thanks again.