Hope someone can help me. I am looking for a rule which fires when the change rate of a device exceeds for example 1 swich per 30 seconds and also a rule which fires when the change rate goes below let’s say 1 swich per 5 minute.
-
Rule for change rate of a boolean device
-
You could use for case 1 (is not the exact syntax, but just the idea)
Create a <dummy presence device> with autoreset of 30 seconds
Create 2 rules:- when <device.attribute> changes then change presence <dummy presence device> to present
- when <dummy presence device> is absent then <do the exceed 30 seconds action>
-
Case 2
Create a <dummy presence device2> with autoreset of 5 minutes
Create 2 rules:when <device.attribute> changes and <dummy presence device2> is absent then change presence <dummy presence device2> to present
when <device.attribute> changes and <dummy presence device2> is present then <do the below 5 minutes action> -
@bertreb Thanks, that helps. Not realy straigtforward but it works. Tricky, as not otherwise expected with pimatic