seydx / homebridge-tado-platform

Homebridge plugin for controlling Tado devices
MIT License
126 stars 65 forks source link

delaySwitch does not work when turning off thermostats #112

Open xyz667 opened 2 years ago

xyz667 commented 2 years ago

The delaySwitch characteristic only works when turning on thermostats - then there is a delay before the thermostat changes state. This delay is missing when turning off thermostats, however. It always changes state immediately, delaySwitch or not.

I want to turn off heating when doors/windows are opened - which generally is working fine. But I don‘t want the thermostats to change state when doors/windows are open for a very limited time. This does not work however, as the thermostats instantly turn off as soon as doors/windows are opened, even with delay configured. The only use of the delaySwitch seems to be to delay the turning back on, after closing the door/window.

I fail to see the logic behind this. Why should the heating be turned off always and immediately when someone enters the house and thus opens the door for <5 seconds to pass, but delay the turning back on? I think this logic is mixed up. If you don‘t want to delay both opening and closing, it is more important to delay the turning off IMO.

Best would being able to set different delays for opening and closing (incl. 0 seconds for no delay) however.