[Solved] Conditional Logic Bug?

I have 2 rules which trigger every 1 minute. These rules are essentially polling my thermostat and waiting for the operating mode to either be IDLE or HEATING.

In rule #1 titled "Make Sure Master HVAC Fan ON when Thermostat Operating State = HEATING" the ACTION is to turn ON a Duct Fan when the CONDITION is that the Ecobee Thermostat thermostatOperatingState is heating.

In rule #2, titled "Make Sure Master HVAC Fan OFF when Thermostat IDLE" the ACTION is to turn OFF the Duct Fan when the CONDITION is that the Ecobee Thermostat thermostatOperatingState is idle.

These rules have been operating fine for months. For some reason, these CONDITIONAL logic for these rules are now failing. Although the thermostat is idle, I'm continually seeing both these rules ACTIONs executing every minute even though the log clearly shows thermostatOperatingState remaining idle.

In case you are wondering why I have the trigger set to run everyone minute rather than simply having the trigger be the a change to the thermostatOperatingState, Ive historically found situations where the changes was not caught, therefore I poll ever minute.

Again, these rules worked fine for months. Anyone see something like this before? I'm running the latest release.

Any ideas?

It says (unused) on the Condition. It's defined but not enabled.

2 Likes

You are correct. Thank you or pointing this out!
Ive never changed that setting and dont know how to put it back into use.

Scratching my head :slight_smile:

Very top of the rule there is a toggle to 'Use Required Expression' toggle that back on. It must have been active and then got toggled off somehow.

1 Like

I went back and looked at my other rule and Use Required Expression is OFF but the CONDITION is In Use. Toggling that setting doesnt solve the make the CONDITION turn to in use. I think I will just delete and recreate the rule to see if I can fix it. Its not too complex. Will report back.

Thanks for your sharp eye!

1 Like

OK so I recreated the rule from scratch and made sure to toggle "Conditional Trigger" when adding the trigger. I have no idea how my rule got changed nor why you would create a condition that wouldnt be used.

Anyway, its fixed. Thanks so much for your help!!!