Remember thermostat value when window opens
Posted: 04 Mar 2017 16:30
Hi,
i am using Z-Way to set my Danfoss Living Connect thermostat to 5 °C when a window is opened. I created a virtual device that runs the following code ("Code for action off"):
(i'm using "If -> Then" to switch that virtual device on/off) I found that piece of code in this thread: https://forum.z-wave.me/viewtopic.php?f=3420&t=21170
As soon as the window is closed, i set the temperatur to 21 °C. That works fine. But of course, whenever i change the the value of my thermostat manually, it is overwritten when i open/close my window. Is there any workaround to "store" the value the thermostat had before the window was opened and set it back to that value when it's closed?
Thanks in advance!
i am using Z-Way to set my Danfoss Living Connect thermostat to 5 °C when a window is opened. I created a virtual device that runs the following code ("Code for action off"):
Code: Select all
zway.devices[10].ThermostatSetPoint.Set(1,5)
As soon as the window is closed, i set the temperatur to 21 °C. That works fine. But of course, whenever i change the the value of my thermostat manually, it is overwritten when i open/close my window. Is there any workaround to "store" the value the thermostat had before the window was opened and set it back to that value when it's closed?
Thanks in advance!