Hi
I used 1.5 for notifications and now decided to migrate to new 2.0 beta.
I get text messages, but no attachments or actions. Here is my config:
'1538231974813':
alias: Alarm notify
sequence:
- service: notify.mobile_app_iphone
data:
message: "Something happened at home!"
data:
attachment:
url: "https://github.com/home-assistant/home-assistant-assets/blob/master/logo-round-192x192.png?raw=true"
content-type: png
I just copied it from documentation…
here is what I get by activating the script:
And actionable notifications:
ios:
push:
categories:
- name: Alarm
identifier: 'alarm'
actions:
- identifier: 'SOUND_ALARM'
title: 'Sound Alarm'
authenticationRequired: true
destructive: true
- identifier: 'SILENCE_ALARM'
title: 'Silence Alarm'
activationMode: 'background'
authenticationRequired: true
destructive: false
behavior: 'textInput'
textInputButtonTitle: 'Silencio!'
textInputPlaceholder: 'Placeholder'
script:
'1538231974813':
alias: Alarm notify
sequence:
service: notify.mobile_app_iphone
data:
message: "Something happened at home!"
data:
push:
category: "SOUND_ALARM" # Needs to match the top level identifier you used in the ios configuration
action_data: # Anything passed in action_data will get echoed back to Home Assistant.
entity_id: light.test
service: switch.turn_on