Hi,
I can’t get the actions to work when I am trying to set up it up. I get the notifications to the phone and I get the two different options when I am pressing. But then nothing happens. I have restarted and updated the settings in the iOs app.
Someone that can help we with what I missed?
configruation.yaml
ios:
push:
categories:
- name: Alarm
identifier: 'ALARM'
actions:
- identifier: 'bortaapp'
title: 'Stäng av bortaläget'
activationMode: 'background'
destructive: no
behavior: 'default'
- identifier: 'utlostapp'
title: 'Utlös larmet'
activationMode: 'background'
destructive: yes
behavior: 'default'
Automation.yaml
## Sending the notification
- alias: Test
trigger:
platform: state
entity_id: input_boolean.test
from: 'off'
to: 'on'
action:
- service: notify.ios_iphone_7_plus
data:
message: "Test message"
data:
push:
badge: 1
category: "ALARM"
action_data:
entity_id: light.vardagsrum__tvbank
my_custom_data: foo_bar
# Action option 1
- alias: 'Larm av app'
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: bortaapp
action:
service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.house
# Action option 2
- alias: 'Utlös i app'
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: utlostapp
action:
- service: homeassistant.turn_on
entity_id:
- switch.kontor__hylla