#Actionable automation to turn off alarmo alarm

10 messages · Page 1 of 1 (latest)

placid dirge
#

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```
umbral edgeBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

mortal pond
#

Something went wrong with that paste... because that indenting is messed up

#

Or that indenting is why it doesn't work

#

Try a code share site to share the whole thing

umbral edgeBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

placid dirge
#

I re did some code trying other things but i am trying to make a actionable notifaction when my alarm goes to pending state i will get a notfication with a " disarm " button that enters my alarm code for me like my other disarm automations do

#

Notifaction works fine , but hitting the disarm button does nothing

mortal pond
#

What does the trace show?