Automations are not working

Hi there!

I am a new forum member and I am really enjoying the Home Assistant experience. I would like some help with my automations. I currently have four automations (created in the automation editor) and only one works (New update notification). I have created these with help from the website guidelines but for the life of me I can’t see whats wrong. They have never worked… :disappointed:

I am probably doing something wrong but I have checked the YAML and it seems fine. Would someone be able to help me?

Automation YAML below:

- id: '1525203153811'
  alias: New update notification
  trigger:
  - entity_id: updater.updater
    platform: state
  condition: []
  action:
  - service: notify.pushover
    data:
      message: An update for Hassio is available!
- id: 16ecc29722834fd3988fc6499d9fd7c4
  alias: Trigger alarm while armed away
  trigger:
  - entity_id: binary_sensor.sensor
    platform: state
    to: 'on'
  - entity_id: binary_sensor.sensor_2
    platform: state
    to: 'on'
  condition:
  - condition: state
    entity_id: alarm_control_panel.ha_alarm
    state: armed_away
  action:
  - data:
      entity_id: alarm_control_panel.home_alarm
    entity_id: alarm_control_panel.ha_alarm
    service: alarm_control_panel.alarm_trigger
- id: 685fd3b5c0ef430dae058cc821be02f2
  alias: Send notification when alarm triggered
  trigger:
  - entity_id: alarm_control_panel.home_alarm
    platform: state
    to: 'triggered'
  action:
  - data:
      message: ALARM! The alarm has been triggered
    service: notify.pushover
- id: '1538073054545'
  alias: Dim lights when watching a film
  trigger:
  - entity_id: media_player.roku_426558006053
    platform: state
    to: 'playing'
  condition:
  - condition: state
    entity_id: sun.sun
    state: 'below_horizon'
  action:
  - data:
      entity_id: light.living_room_lamp
    service: light.turn_off

If you select them (in the dev-states menu) and push TRIGGER do they run?

Are they enabled (turned on)?

yes, I can manually trigger them and they appear to work correctly. It seems that they are not being triggered. All the automations appear to be turned on (enabled).

When I manually trigger each automation:
For the ‘Dim lights when watching a film’ automation it correctly turns the light off
For the ‘Send notification when alarm triggered’ it correctly sends a notification
For the ‘Trigger alarm when armed away’ nothing appears to happen (this should trigger the ‘Send notification when alarm triggered’ automation but it does not.

I think the issue is that they are not being triggered correctly but I can’t see why…

The third one has a formatting issue:

  action:
  - data:
      entity_id: alarm_control_panel.home_alarm
    entity_id: alarm_control_panel.ha_alarm
    service: alarm_control_panel.alarm_trigger

Note you’ve duplicated the entity_id. That would probably stop the alarm notification automation from working, because the alarm will never trigger. You could test it by manually triggering the alarm in the services menu.

For the last one, you’ve checked that your location is correct in homeassistant:?

Okay so after a bit of playing around I have found out that when I manually call the service: alarm_control_panel.alarm_trigger nothing happens…?

You’re right that the entity ID is duplicated and the correct name is alarm_control_panel.home_alarm however changing this does not seem to have had an effect.

sorry about the delay. As with all things life got in the way!

Nothing happens when you trigger the alarm, unless you’ve an automation listening for that:

trigger:
  - platform: state
    entity_id: alarm_control_panel.ha_alarm
    to: 'triggered'