Power value monitoring

Hi all,

Can anyone help out a noob please

I’m trying to send a telegram notification when the Power on my Aetoec switch plug drops to ‘0’. So far I have this working but I would like it to only send the notification when it drops from a value greater than 500.0 to 0.0?

- alias: Washings done
  trigger:
    platform: state
    entity_id: sensor.aeotec_zw096_smart_switch_6_power_9_8
    state: '0.0'
  action:
    - service: notify.notify
      data_template:
        message: Washings Done

Take a look at this - I used Aeotec Smart Switches for the very same thing; one for washer and one for the dryer.

Thanks I’ll check it out