Android notification with video attachment

I am trying to use the below code to attach a video to a notification. I have referred to the documentation and made sure that the video is in MP4 format (H264), is less than 50MB in size (1MB), and is of reasonable length (10s). The video path is /media/test.mp4.

With the below code, the notification comes through with no video. A notification with an image instead from the same location is attached without issue.

service: notify.adams_phone
data:
  message: "Motion detected"
  data:
    video: /media/local/test.mp4

I appreciate any help. Thanks.

Hi there any luck with this, I have came across the same issue. The notifications with image files in the same location are fine but video files do not appear.

Maybe you can find some inspiration in the way I have solved it: [solved] Automation w/ 3 actions (notification scripts): how to make them run in parallel?