After doing some searching on ways to make my thermostat rule more reliable, this is what I came up with. This is my first somewhat complicated rule so I am sure that there is a more efficient way to do the same thing.
Besides for the fact that it is a little clunky, it also only controls the heating. When summer comes around I will need to rewrite the rules to control the A/C.
Does anyone have any ideas to do this same thing but more efficiently and to also include control for the A/C. The only way I can think of to include A/C control is to check if the thermostat is set to heat or cool when the system is armed or disarmed. Based on if the thermostat is set to heat or cool, it would run different tasks. The amount of rules below would double.
Any help would be appreciated.
Besides for the fact that it is a little clunky, it also only controls the heating. When summer comes around I will need to rewrite the rules to control the A/C.
Does anyone have any ideas to do this same thing but more efficiently and to also include control for the A/C. The only way I can think of to include A/C control is to check if the thermostat is set to heat or cool when the system is armed or disarmed. Based on if the thermostat is set to heat or cool, it would run different tasks. The amount of rules below would double.
Any help would be appreciated.
Code:
WHENEVER Cabin Home (Area 1) ARM STATE BECOMES ARMED
THEN ACTIVATE Economy Mode (Task 2)
WHENEVER Economy Mode (Task 2) IS ACTIVATED
THEN SET Main (Tstat 1) HEATING DESIRED TEMP TO Away Temp H (Cust Set 3)
THEN TURN Output 100 ON FOR 2 MINS
THEN SET Addition (Tstat 2) HEATING DESIRED TEMP TO Away Temp H (Cust Set 3)
THEN TURN Output 101 ON FOR 2 MINS
WHENEVER Output 100 STATE IS TURNED OFF
AND Main (Tstat 1) HEATING DESIRED TEMP IS ANY VALUE OTHER THAN Away Temp H (Cust Set 3)
THEN SET Main (Tstat 1) HEATING DESIRED TEMP TO Away Temp H (Cust Set 3)
THEN TURN Output 100 ON FOR 2 MINS
WHENEVER Output 101 STATE IS TURNED OFF
AND Addition (Tstat 2) HEATING DESIRED TEMP IS ANY VALUE OTHER THAN Away Temp H (Cust Set 3)
THEN SET Addition (Tstat 2) HEATING DESIRED TEMP TO Away Temp H (Cust Set 3)
THEN TURN Output 101 ON FOR 2 MINS
WHENEVER Cabin Home (Area 1) ARM STATE BECOMES DISARMED
THEN ACTIVATE Comfort Mode (Task 3)
WHENEVER Comfort Mode (Task 3) IS ACTIVATED
THEN SET Main (Tstat 1) HEATING DESIRED TEMP TO Home Temp H (Cust Set 4)
THEN TURN Output 102 ON FOR 2 MINS
THEN SET Addition (Tstat 2) HEATING DESIRED TEMP TO Home Temp H (Cust Set 4)
THEN TURN Output 103 ON FOR 2 MINS
WHENEVER Output 102 STATE IS TURNED OFF
AND Main (Tstat 1) HEATING DESIRED TEMP IS ANY VALUE OTHER THAN Home Temp H (Cust Set 4)
THEN SET Main (Tstat 1) HEATING DESIRED TEMP TO Home Temp H (Cust Set 4)
THEN TURN Output 102 ON FOR 2 MINS
WHENEVER Output 103 STATE IS TURNED OFF
AND Addition (Tstat 2) HEATING DESIRED TEMP IS ANY VALUE OTHER THAN Home Temp H (Cust Set 4)
THEN SET Addition (Tstat 2) HEATING DESIRED TEMP TO Home Temp H (Cust Set 4)
THEN TURN Output 103 ON FOR 2 MINS