Energy usage based rule issue

Hi @Cronald, welcome to the community, I would suggest you to break this into two rules, and use the True/False variable to achieve what you wanted - only get the notification when the energy has stayed below 450W for 5 minutes.

See below for the rule examples:

  1. Rule 1: update the isLowEnergy variable based on the energy reading. (You can create the True/False variable by tapping the ... in the rule editing or rule list page.) This rule will be triggered whenever the energy reading changes, and I used the context variable to determine the event value and set the isLowEnergy varialbe accordingly.

  2. Rule 2: send email notification when the isLowEnergy value has stayed true for 5 minutes. Note the operator is stays in the trigger.

FYI, you can use the “Rule Screenshot” feature to save sometime by taking the rule screenshot when posting your rule logic in the community.

Let me know if this helps.

–EDIT–
I had the wrong logic in my previous rule example screenshot and assigned the variable value in the opposite way. Updated the rule example screenshot to correct the logic.

1 Like