This object is in archive! 

thermostat rule dont work

Stian Ranvik shared this question 8 years ago
Need Answer

I have a rule that 2 wall switches is activating a thermostat to cool at 18*C, and set the mode to Hold Permanent, then after 1800sek it set it back to Run Program (another rule (auto mode) takes over).

Notting happens, it doesnt turn the thermostat to cool 18 or mode to Hold Permanent.

433mhz Wall switches is OK. It turns on/off the fan if i Bind the buttons direct to the Ventilation switch in the old skin.

What is wrong with the rule?

Files: 3.PNG

Replies (5)

photo
2

Not sure if it helps, but try to replace the two ifs with if-else...

photo
1

I tried that. It now is switching between Program and Permanent Hold all time, when i only press off. It should only go to Program.

Files: 4.PNG
photo
1

it does work when i only use the wall switches in the "When" and not use them under the "IF".


I then have to make another rule to get the "OFF"


like this:

photo
2

It is because you have 2 IF. In the first case Where you have any in when. First it checks if any of the switches is on, OK


In the other IF it cheks if any of the switches is off and I think you don´t press both switches at the same time to off or on, just one of them.


Because of that you have 2 if´s in the rule and you have just pressed one switch the both if´s are true. The rule will work if you have just one switch in it.

photo
2

Use the "if then else" puzzle block and insert your second "if" puzzle into the "else" space. Also I think the rule is confused. If you have one switch on and one off the rule does not know which to proceed with with. For example you have already one off, later that day you use the second switch to turn on the ac, the rule looks and the state of the two switches. One on and one off, which rule to I execute. You also should put in the rule to turn the switch off after the wait command.

I would create a virtual switch that is triggered by the two switches you currently have. Also makes it possible to use this virtual switch elsewhere and it is reflected in this rule also.

photo
1

yes, that worked. Thanx

photo
Leave a Comment
 
Attach a file