I use the manual alarm config and have tried to add ios actions to arm and disarm the alarm, however when I select one of the options from the notification it doesn’t work and I get invalid code in the logs. is there a way to pass the code in? or am I getting it wrong?
#
# Alarm if certain conditions are met
#
- alias: iOS Ask Alarm
trigger:
platform: state
entity_id: device_tracker.sam
from: "home"
to: "not_home"
action:
service: notify.ios_sam
data:
message: "Coming or Going?, Alarm?"
data:
push:
category: "alarm"
#
# Catch the response from the alarm notification
#
- alias: Activate Alarm
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: ACTIVATE_ALARM
action:
- service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.home_alarm
- alias: De-Activate Alarm
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: DE-ACTIVATE_ALARM
action:
- service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.home_alarm
- alias: 'Send notification when alarm triggered'
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: 'triggered'
action:
service: notify.ios_sam
data:
message: "ALARM Triggered!"
data:
push:
category: "alarm"