05-17-2018, 07:00 AM
I am using several Rules to ventilate my basment depending on Outside Temperature as this example states:
Problem is, that switching to on if both conditions are true is working properly, but the device is not switching to OFF after the given MINUTE.
If I remove the AND-Condition, the DEVICE is switched to OFF after the given time, but with AND-Condition, it stays ON all day Long.
Any Idea, what might went wrong?
Thanks a lot!
Code:
"keller_morgens_kino": {
"rule": "IF ((zeit.hour == 7 AND zeit.minute == 0 AND zeit.second == 0) AND weather1.temperature < sensor_kino.temperature) THEN switch DEVICE keller_kino TO on FOR 40 MINUTE",
"active": 1
},
Problem is, that switching to on if both conditions are true is working properly, but the device is not switching to OFF after the given MINUTE.
If I remove the AND-Condition, the DEVICE is switched to OFF after the given time, but with AND-Condition, it stays ON all day Long.
Any Idea, what might went wrong?
Thanks a lot!