-
Hi, I look for a solution for a special case. I use the LCN integration for HA to control my thermostats. The integration publishes climate-entities. To utilize the versatile thermostat features I use a template to extract the current temperature from the rooms. So far so good. I also use the window-open-feature (by binary sensors) to power down the climate(s) when windows were opened. Unfortunately the LCN integration "locks" the regulator value to the last value when "turn off" is sent. This results unfortunately in locking the setpoint temperature to 20 °C for example. So if the temperature drops because of the opened window the thermostat will try to hold the temperature and starts to heat. My first thought was simply use the versatile thermostat function setting the eco temperature in case of an opened window. But then setpoint changes lead to overwrite the reduced temperature. So I would need to add an additional temperature set (preferably the eco temperature) before turning off (lock my thermostats). Any suggestion where I could add this? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
After more research I found a solution for me. Adding the following to line 2524 of base_thermostat.py seems to do the trick:
I simply want to send the (eco-)temperature (this is only the proof of concept) to the underlying climate without changing the versatile thermostats temperature itself. This leads into changing the temperature to a lower one and locking the versatile thermostat in off-state. Now it is possible to change the temperature (for example through an automation rule) without being in danger that the heating is turned on while the window is still open. When the window is closed again, either the previously set temperature or the newly set temperature through any automation rule is set. I am aware that this is a quick and dirty hack. Maybe there is a more elegant way to implement this (e.g. by adding a selection if and which temperature should be sent)? I hope this could also be a use case to other users. |
Beta Was this translation helpful? Give feedback.
-
Hello @andrexp , I'm confused. This feature already exists natively in Vtherm. When window open is detected you can turn off or change the preset. You just have to configure what is the action when window is detected as open. |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you for your answer. I knew that. As I wrote above:
Unfortunately this solution is not what I need. I also control my climates manually and through rules. Reducing the temperature with the native VTherm feature does not block temperature changes and it could be that someone changes the temperature when window is still opened. Please correct me if I am using it wrong. |
Beta Was this translation helpful? Give feedback.
-
Yes, that's my problem. The underlying interprets the "turn-off" in locking the currently set Temperature. That means if you want to change the temperature by hand (I have displays in my room) it won't accept any setpoint changes. But if the thermostat locks to the last value it also can be 20 °C (or something higher) which is far too high for an opened window... :-) |
Beta Was this translation helpful? Give feedback.
-
It is LCN (a German manufactured building automation system by the Issendorff KG). Yes, I did that. But then setpoint values will have instant impact to underlyings if someone try to change it while window is open. While the VTherm is in turned-off state the setpoint change will be transmitted to the underlying when window is closed again. |
Beta Was this translation helpful? Give feedback.
-
I basically agree with you, but I am wondering if sending a specified preset temperature to the underlying before HVACMode.OFF is set would change the general behaviour of VTerm. The thermostats would do that in a similar way anyway by closing the valve of the radiator or circuit completely, aren't they? However, thank you for your time and for this great work. |
Beta Was this translation helpful? Give feedback.
After more research I found a solution for me. Adding the following to line 2524 of base_thermostat.py seems to do the trick:
I simply want to send the (eco-)temperature (this is only t…