Hi All,
I’m working on a dryer/washer alert based on power and I’ve noticed that every so often for some reason they randomly power spike throughout the day and it triggers my alerts. I understand that there is a delay_on for platform: template, does this mean that so long as the “power” level is above “3” and its there for more than say 30 seconds, that it will trigger to true? So if the power level immediately dips before the 30 seconds is up it should not trigger and stay off?
something like the below is what im thinking (if the power stays above 3 for more than 30 seconds, set state to 'ON" if the power falls below 3 within 30 seconds, stay “off”).
- platform: template
sensors:
washing_machine:
friendly_name: "Washing Machine"
delay_off:
minutes: 2
delay_on:
seconds: 30
value_template: >-
{{ states('sensor.washer_power_switch_power')|float > 3 }}