Hey! First-time poster here, basically giving up since I can’t find a solution to this for the life of me
I got a HA Yellow and have a Synology NAS with a Camera_Front folder that’s mounted in Network Storage.
In that folder I’ve got a JPG file.
I’ve been trying to write a script which would send me a push notification which then, in turn, would take me to the HA mobile app on my Android phone, and ideally open that file from there (I can navigate to it manually by going Media -> My media -> Camera_Front), or at least take me to its folder.
I’ve tried multiple things and read through the docs but nothing seems to describe this particular use-case. I either get a 401/404 inside the app, or “Invalid media source URI” or it simply opens on the main Media screen.
Has anyone tried doing anything similar?
The code I got is really simple:
alias: test
sequence:
- service: notify.mobile_app_jake_s_phone
data:
message: "{{ message }}"
data:
clickAction: /media/local/Camera_Front/
mode: single
icon: mdi:doorbell
is the goal that you want to get to see that jpg? or is it that you must go to the media folder?
i do something kinda similar, but i take the url to a dashboard, and that dashboard has the still image from the camera as well as a click through to the live feed:
sequence:
- service: notify.mobile_app_<your_phone>
data:
message: click below
title: camera
data:
actions:
- action: URI
uri: /dashboard-cameras/camera-status
title: dashboard
note, i’m sending to android, so ymmv, but i think it’s pretty similar, and the main thing is whether going to a dashboard would work for you…
Sorry for the delay – I got super side-tracked with some other stuff
I tried the dashboard approach but it’s not worked – I don’t actually get sent to the dashboard. I suspect your setup to be slightly different.
Thanks for trying, though