Hey All,
I have an automation that I want to send me an iOS with some options. However i get the following error in the logs when it triggers;
Invalid service data for notify.ios_sam: extra keys not allowed @ data[‘push’]. Got OrderedDict([(‘category’, ‘alarm’)])
Here is my automation;
alias: iOS Ask Alarm
trigger:
platform: state
entity_id: device_tracker.sam
from: 'home'
to: 'not_home'
action:
service: notify.ios_sam
data:
message: "I see you have left, activate alarm?"
push:
category: "alarm"
alias: Activate Alarm
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: ACTIVATE_ALARM
action:
- service: input_boolean.turn_on
entity_id: input_boolean.house_alarm
Here are my catagories;
push:
categories:
- name: Alarm
identifier: 'alarm'
actions:
- identifier: 'ACTIVATE_ALARM'
title: 'Activate Alarm'
activationMode: 'background'
authenticationRequired: no
destructive: yes
- identifier: 'DE-ACTIVATE_ALARM'
title: 'De-Activate Alarm'
activationMode: 'background'
authenticationRequired: yes
destructive: no
Anyone point me in the right direction?