Automation triggers manually and sometimes on schedule

Hi all,

First timer at this here and I’ve run into an issue that I can’t seem to debug.

I have an automation that turns my Alarm Panel to Armed and to Disarmed at scheduled times. I have noticed on several occasions that the automation runs, but doesn’t actually execute the action properly. As part of my arm automation I have it set to turn on my outside lights at the same time as arm. The lights will dim, but the panel never goes to arm. If I hit Trigger it will then run. This is also the case for disarm. Most mornings I will see that my alarm panel is still armed and I need to enter the pin code or hit Trigger on my automation and it will disarm.

Bear with me. I used the Automation piece in the configuration in Hassbian and it does a number on the ordering of the code.

Arm:

- action:
  - data:
      code: !secret_Alarm
      entity_id: alarm_control_panel.alarm_panel
    service: alarm_control_panel.alarm_arm_home
  - data:
      brightness_pct: '60'
      entity_id: light.outside
    service: light.turn_on
  - data:
      brightness_pct: '50'
      entity_id: light.living_room
    service: light.turn_on
  alias: Arm house nightly
  condition: []
  id: '1515549462569'
  trigger:
  - at: 00:00:00
    platform: time

Disarm:

- action:
  - data:
      code: !Secret_alarm
      entity_id: alarm_control_panel.alarm_panel
    service: alarm_control_panel.alarm_disarm
  alias: Disarm house
  condition: []
  id: '1515549462570'
  trigger:
  - at: 05:00:00
    platform: time

Thoughts?

Since 0.63 I noticed a similar problem: I have an automation to arm and disarm the alarm with geofencing, but it didn’t trigger. Must check the commits from 0.62 to see if something in the alarm changed.