Triggers for power drop i.e. tumbledryer


I have a basic automation for when the tumble dryer stops using a sonoff POW and it works sort of well. The way I have set it up means I get a message when I reboot my HA which I don’t want… is there a way to trigger if it goes from xxx to yyy please?

    platform: numeric_state
    entity_id: sensor.tumble_dryer_draw
    below: 100
     - service: notify.notify_mark
         title: "FINISHED"
         message: "Drying done"

you could add a condition to check if HA started recently.
I don’t believe if there’s a state you can track for how long HA has been up and running. So you could have an automation that runs on startup with an action that has no impact on your setup (e.g. set an input_boolean to its initial state):

- alias: HASS Start Sound
    - platform: homeassistant
      event: start
  - service: media_player.play_media
      entity_id: media_player.living_room_google_mini
      media_content_id: 'https://HA_IP:8123/local/Click.mp3'
      media_content_type: 'audio/mp3'

and use a condition based on that automation:

    - condition: template
      value_template: '{{ (as_timestamp(now()) - as_timestamp(states.automation.HASS_Start_Sound.attributes.last_triggered | default(0)) | int > 60)}}'

Alternatively check this suggestion: