Can't get alerts working

I stole the code from the alert page and modified it to use a light so I could test but I’m obviously missing something as even though the alert shows as ‘on’, I never get any messages on any of the defined notifiers, even though the notifiers work using other automation and also using the services tab.

What am I doing wrong ? :woozy_face:

alert:
  garage_door:
    name: Garage is open
    done_message: Garage is closed
    entity_id: light.shelly_dimmer_lounge
    state: 'on'
    repeat: 01
    can_acknowledge: true
    skip_first: false
    notifiers:
      - notify.mobile_app_nokia_7_1
      - notify.hass_synochat
      - notify.clickatell_pete

N.B I’m running 0.117.5 on Intel NUC

You have not defined a message to be sent. So it’s not sending anything.

You Sir are correct! Might make a PR so that’s in the example!

Added message and changed time to - 1 instead of - 01 just in case, still not working.

  garage_door:
    name: Garage is open
    message: Lounge light has been on for 1 minute
    done_message: Lounge light is off
    entity_id: light.family_room_lamp
    state: 'on'
    repeat: 
      - 1
      - 5
      - 15
    can_acknowledge: true
    skip_first: false
    notifiers:
      - notify.mobile_app_nokia_7_1
      - notify.hass_synochat
      - notify.clickatell_pete

Turn the light off then on.

Yep, done that. Nothing.

Last 4 lines are wrong, should be…

    notifiers:
      - mobile_app_nokia_7_1
      - hass_synochat
      - clickatell_pete
2 Likes

Argh, now that’s not obvious. Let me try that and report back.

1 Like

Thanks, it’s bloody obvious now that you point it out. Thank you! All working now. :blush:

1 Like