Washing machine power consumption trigger

LThis is how I did it. Not tested yet. Suggestions are welcome. TP-Link HS110
TTS with Alexa works with this:

automations:
- alias: Notification - washing machine
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: sensor.wash_power
    to: 'False'
    for: '00:03:00'
  action:
    - service: notify.ios_group
      data:
        message: "XYZ"
    - service: media_player.alexa_tts
      data:
        entity_id: media_player.echo_dot__wz
        message: "XYZ"