Actionable notifications with dynamic content

I’m trying to create an actionable push notification with dynamic content (camera feed), like the one shown in example here https://home-assistant.io/ecosystem/ios/notifications/content_extensions/.
But I don’t get what I should do (create a new notification with category = camera or something). Can someone send a example so I can figure it out how to do this ?

Did you ever figure this out? Looking to do the same

call the category with your actions ‘camera’ (as the identifier name)

      - name: alarm
        identifier: 'camera'  
        actions:
          - identifier: 'SOUND_ALARM'
            title: 'Sound The Alarm'
            destructive: yes  

then where you create the notification:

  - alias: motion detected
    trigger:
        ......
    action:
      service: notify.ios_iphone
      data:
        message: "motion detected, sound the alarm?"
        data:
          attachment:
            content-type: jpeg
          push:
            badge: 0 
            category: camera
          entity_id: camera.bedroom_cam #your cam's entity id

That’s how I’ve done mine

1 Like