Hello Everyone
Can someone help me with this? can’t get it working.
I want to create an automation with combined camera image and action button.
Right now I have the following configurations, wich for it’s own work’s perfect:
ios config:
ios:
push:
categories:
- name: Autogarage
identifier: 'autogarage_notify'
actions:
- identifier: 'AUTOGARAGE_PUSH'
title: 'Öffnen/Schliessen'
activationMode: 'background'
authenticationRequired: true
destructive: true
behavior: 'default'
Notification with Image:
#Test Garage Cam
- id: test_garage_door
alias: Garage Cam Test
trigger:
platform: state
entity_id: person.noah_canadea
from: "not_home"
to: "home"
action:
service: notify.mobile_app_iphone_11_pro_noah
data:
message: Garage öffnen
data:
attachment:
content-type: jpeg
push:
category: camera
entity_id: camera.p3364_l_1
Notification with buttons to Open/Close garage-door:
#Test Garage push
- id: Autogarage_Notify_Noah
alias: Autogarage Notify Noah
trigger:
platform: state
entity_id: person.noah_canadea
from: "not_home"
to: "home"
action:
service: notify.mobile_app_iphone_11_pro_noah
data:
message: Autogarage steuern
data:
push:
category: "autogarage_notify"
Automation wich is called when the button is pushed:
#Autogarage Schalter betätigen
- id: autogarage_button
alias: Autogarage_Schalten
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: 'AUTOGARAGE_PUSH'
action:
entity_id: switch.autogarage
service: switch.toggle
How can I combine the two notifications, so that I get one notification with the Image and the button?
Thanks for your help.