Hello community,
I try to create a rule that informs me when a specific cunsumption is reached.
if $HS110.watt < 10 then bla
Works well, but
if $HS110.watt < 10 for 5 minutes then bla
doesn’t work.
Why?
Rule with timespan
Hello community,
I try to create a rule that informs me when a specific cunsumption is reached.
if $HS110.watt < 10 then bla
Works well, but
if $HS110.watt < 10 for 5 minutes then bla
doesn’t work.
Why?
I tested it quickly but with seconds instead of minutes. It works as expected. The condition must change to trigger the rule.
Do you mean the rule doesn’t trigger if the Watt keeps always the same?
Why does it trigger in my first example?
Edit: When the state changed before, everything works fine. Curious.
@saxnpaule No, I mean that the rule triggers only when the watt changes from somthing above 10 to something below 10.
That’s strange, because the Watt was 0 all the time in my case and the rule didn’t trigger.
@saxnpaule I think that is correct. If Watt is 0 on startup or when rule is saved it triggers once. Then Watt must raise above 10 and after that it must fall below 10, then the rule should trigger again.
A workaround might be to combine the condition with a ‘for every x minutes’
There is no workaround needed. If it works successfully when the watt was above x then this fulfills the requirement.