Before this thing gains too much traction, would it make sense to develop some common formatting for the notification metadata?
for example, in iOS:
{'push':{'category': 'AWAY'},
'action_data':{'uuid': str(self.api_obj.state_uuid)}}
after I put this in the configuration.yaml
:
ios:
push_categories:
- name: Away
identifier: 'AWAY'
actions:
- identifier: 'ALARM_ARM_NOW'
title: 'Arm'
activationMode: 'background'
authenticationRequired: no
destructive: yes
behavior: 'default'
context: 'minimal'
- identifier: 'ALARM_CANCEL'
title: 'Cancel'
activationMode: 'background'
authenticationRequired: yes
destructive: no
behavior: 'default'
context: 'minimal'
and in HTML5:
{'actions': [
{
'action': 'ALARM_ARM_NOW',
'title': 'Arm'
},
{
'action': 'ALARM_CANCEL',
'title': 'Cancel'
}
],
'tag': str(self.api_obj.state_uuid),
'uuid': str(self.api_obj.state_uuid)
}
Now I have to write separate automation to talk to each…
BTW: I really like some of the options I get for iOS like authenticationRequired
and destructive