When my camera detects a motion, i’m capturing a snapshot and saving it under:
/config/www/backyard_snapshot.jpg
now i want to access this image when i use a call service (in node red) and send it over to my phone. i’ve tried the following but haven’t been able to make it work:
Do it the same way I mentioned in the other thread. This is the exact automation my example came from, sending a camera snapshot to me. As for the Node-Red side, I can’t help as I don’t use it.
I am VERY interested in finding the correct format that I should be using in order for this function to be successful. I have looked at that HA document prior, though sadly I have not taken away anything that gave me correct format to use via NodeRed.
All of the helpful information is written in YAML, though it would seem that all NodeRed wants me to enter is JSON
So, that is my disconnect.
I tried using a YAML - > JSON converter online, though that is causing some API errors with the call services node. (Most likely because I am sending redundant info)
It is possible that I might be barking up the wrong tree coming here to ask for a solution to an issue that is caused by my lack of knowledge with how to properly use NodeRed.
That said, I am sure if I just used the notification platform within HA, then it would be working as intended.
YAML and JSON may be formatted differently but the keywords and variables use are still the same. So where in the link I posted do you see attachment being used? You need to start there and look at the basics. If you don’t get YAML maybe consider focusing on understanding YAML before you move on to Node Red?
Follow the examples on the docs site and make sure your JSON sticks to that. There is also a discord channel for node red if you need more help too.
Hi, someone know why in the iphone can se the image, but on android 13 don´t?
I save the image here:
/media/facesnap/snap.jpg
and this is how i sended:
android:
service: notify.mobile_app_androidluis
data_template:
title: Están Tocando el timbre...
message: Esta persona esta tocando...
data:
color: red
image: /media/local/facesnap/snap.jpg
iphone:
service: notify.mobile_app_iphone_hosi
data_template:
title: Están Tocando el timbre...
message: Esta persona esta tocando...
data:
color: red
image: /media/local/facesnap/snap.jpg
then if the above works, why does this not show me any picture in my notification? But if I copy 1.jpg to my www folder and change the notification link to /local/1.jpg it does (so I know the picture CAN be sent via notification)
Correct me if I’m wrong but in this screenshot you are viewing the image using your internal address. What happens if you try to view it from your external HA address?