Hi all , I'm trying to get some code right to turn off my home alarm with an actionable notification. I'm having some trouble getting this to work.
I have the notifcation going through but when I hit the disarm button nothing happens. Here is my code
variables:
action_Disarm: "{{ 'Disarm_' ~ a1d4cd0f6ed46a63a1e924e5d20a986f }}"
- alias: The alarm is about to sound
action: notify.mobile_app_xpm768_iphone
data:
message: The alarm is about to sound
data:
actions:
- action: "{{ action_Disarm }}"
title: Disarm
- alias: Wait for a response
wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: "{{ action_Disarm }}"
- alias: Perform the action
choose:
- conditions: "{{ wait.trigger.event.data.action == action_Disarm }}"
sequence:
- action: alarm_control_panel.alarm_disarm
metadata: {}
data:
code: "2135"
target:
device_id: a1d4cd0f6ed46a63a1e924e5d20a986f
entity_id: alarm_control_panel.alarmo```