Triggers for power drop i.e. tumbledryer

Hello

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?

  trigger:
    platform: numeric_state
    entity_id: sensor.tumble_dryer_draw
    below: 100
  action:
     - service: notify.notify_mark
       data:
         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
  trigger:
    - platform: homeassistant
      event: start
  action:
  - service: media_player.play_media
    data:
      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: