I’m trying to attach a video to a notification and have home assistant play the video when I tap on the notification. I was able to attach the video using from a media_source using these instructions
service: notify.mobile_app_pixel_6
data:
message: Front Door Recorded @4:50 PM
data:
video: /media/cctv/2023-10-03/16.49.41-16.50.03[M][0@0][0].mp4
clickAction: media-source://media_source/cctv/2023-10-03/16.49.41-16.50.03[M][0@0][0].mp4
I’m pretty sure the URL is valid because it works with the play_media service
The media_source integration has the advantage that access requires authentication headers (which Home Assistant provides to the companion app). This means the content is not publicly available
I’ve also tried setting clickAction and video to the same path starting with /media/...mp4 without success. How do I provide the headers or is there an alternative method that works?
Not sure if media_source and /media shortcuts are failing due to the same underlying issue related to authentication. I’ll be awaiting the bug fix and will retry.