Help with abode alarm triggering automation

I’m trying to get HA to send an alert if/when my abode alarm system is triggered, but not having any luck. I have the abode integration all setup and working - I can trigger automations on all sensors or when arming/disarming the alarm. From what I’ve read, it seems like this should work, but it’s not.

- id: abode_alarm_trigered
  alias: ALARM - abode alarm triggered
  initial_state: 'on'
  trigger:
    - platform: state
      entity_id: alarm_control_panel.abode_alarm
      to: 'triggered'
  action:
  - service: notify.notify
    data:
      message: HOME ALARM TRIGGERED
  - service: switch.turn_on
    entity_id: switch.garage_tp, switch.deck_lights, group.night_lights

I’ve also tried this trigger, with no luck.

    - platform: event
      event_type: abode_alarm

Any ideas?
TIA

I think your notify is probably erroring out and stopping the rest of the automation from executing. Look at the log for the error message. If you put the lights first I bet they will turn on and you would see that your automation is triggering. I think the problem is you have no target for your notify.

The notification and lights all work when I fire each trigger manually, so I don’t think it has to do with the notification. Also, I don’t get any errors in the log. The problem seems to be that I’m not getting the state change to ‘triggered’ on the control panel, nor the event from the abode component.

The only difference I see between your automation and mine is the level of indentation on the trigger. Yours is indented two more spaces.

Hmm. Can you paste in your config?

Here is my automation. If the indentation doesn’t make a difference then there is something wrong with your security setup.

  - id: security005 # Actions to perform on Alarm trigger
    alias: 'Security Trigger'
    trigger:
      platform: state
      entity_id: alarm_control_panel.home
      to: 'triggered'
    action:
      - service: homeassistant.turn_on
        entity_id: flasher.alarm

Thanks! Good catch on the indentions - I assume that could definitely have something to do with it. I’ll test it out.

To follow up… I got it to work with this config:

- id: abode_alarm_trigered
  alias: ALARM - abode alarm triggered
  initial_state: 'on'
  trigger:
    platform: event
    event_type: abode_alarm
  action:
  - service: notify.notify
    data:
      message: HOME ALARM TRIGGERED
  - service: switch.turn_on
    entity_id: switch.garage_tp, switch.deck_lights, group.night_lights

@micque … I think you were spot on that I had my trigger indented too far.

FYI, I could never get it to work with this as the trigger (regardless of the indentation):

platform: state
entity_id: alarm_control_panel.abode_alarm
to: 'triggered'

While I was testing and had the alarm triggered, the state for the alarm_control_panel.abode_alarm entity always showed the armed state (home or away) and never went into a “triggered” state.