Hi,
I have an install with HACS UnifiProtect. It works great and I am able to see the camera live feeds on the dashboard.
I am working on integrating with Node-Red now. I started small and am able to trigger on presence from HA and turn a light on and off.
I am now starting to work on what i really want to do, which is take a snapshot from a camera. I have done a lot of research and I get what needs to happen, I am just not sure how to get it done.
Create a service which is camera.snapshot for each camera
From Node-Red, be able to trigger a snapshot based on an event. I am not using the inject node in Node-Red to test, but I am not sure how to trigger an action from Node-Red.
I tried to use the developer tools, and have this script:
I created the tmp folder at the same level as configuration.yaml.
when I run the service in the developer section, I get no pictures in the folder.
I am new at all of this, so i am trying to get up the speed quickly.
Has anyone done anything like this before? Any recommendations or articles you can point me to for help?
Thanks,
H-
Thanks for the reply. I just tried that. Created the folder under config, and changed my node red filename path as you stated above. No luck. No file shows up in the directory.
From what I read so far, I will just use the /share folder which already exists at the same level as config.
I feel like I am missing something small to get to that. There are a lot of threads about this, but I cannot get my finger on what I am missing to get this to work.
thanks,
H-
Now I mentioned I tried it above, but the one thing missing was to restart the server to reload configuration after the changes. That did it. Now I can take a snapshot from a camera in NodeRed and have it saved in /share.
I am still going to try and find a solution on how to direct it to a mounted drive.