Automation if numeric state changes from >10 to 0

Hi,

i dont get it, how can i create a trigger which triggers only if
1.) The numeric state is 0
2.) The former numeric state was >10
3.) The former state was NOT unknown/unavaiable…
4.) And all this is the case for minimum 15 Minutes

Why?
My Dishwasher is quite stupid and i just wanna notify if its finished. This can be archived by checking, that the power usage ob the smart power outlet is <1W for mimimum 15 Minutes… :slight_smile:

trigger:
  - platform: numeric_state 
    entity_id: sensor.dishwasher_power
    below: 1
    for:
      minutes: 15
condition:
  - condition: template 
    value_template: "{{ trigger.from_state not in ['unknown', 'unavailable'] }}"
action:
  - service: ...
1 Like

There is a blueprint for just sort of thing :

https://community.home-assistant.io/t/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes/254841/115

1 Like