Ah oke that i didnât know i had to create a map first. My mobile phones can reach https://hass.mydomain.net:8123 i have the HA app installed and is working but there is no /local/snapshot_voortuin.jpg I do get the notification but there is no picture in it.
Were do i create this local directory and / or /config/www/tmp ?
I tested last days by creating
The directory where your configuration.yaml is located is config so in my case (I run HA in a Python virtualenv and not HA Supervised, HassOS or HA Docker) it would be /home/homeassistant/.homeassistant/www/tmp/ (in other words, drop config). Then, for the external access, www (on disk) becomes local (in the URL).
That makes a lot of sense. I have the same setup i installed HA python virtualenv also in a Ubuntu VM.
I created /home/homeassistant/.homeassistant/www/tmp/ gave it homeassistant user and group with 0777 permissions.
I installed the blueprint again setup the camera: in configuration.yaml created the automation again camera picture is chowing in the automation so thats good to.
Wen i run the automation there is still this eror in de log 2021-03-08 14:18:07 ERROR (MainThread) [homeassistant.components.camera] Can't write /config/www/tmp/snapshot_voortuin.jpg, no access to path!
But somehow the automation still has no access to /www/tmp/
I changed the www/tmp/test.jpg to snapshot_voortuin.jpg and triggered the automation. Now i do get my test image in de notification of my mobile phone.
But its the test image not the image of the camera because it still canât write to /www/tmp/
Weâre the odd balls running HA in a virtualenv (remember that when looking at other things on the forum too).
I stand corrected on this, so someone with better knowledge, please chime in. I think when you run HA e.g. in Docker, there is an actual config directory. I checked the blueprint (which I donât use myself as I already had a working setup from almost 2 years ago) and I think you should make the following change.
Yeah i remember wen i installed HA in a virtualenv the text said you have to do everything yourself. Thatâs what iâm experiencing now of course and last days many many hours of searching. I knew it would be difficult because of the virtualenv of HA thats why i posting my question here because i was out of options. Iâm very thankful with your help.
So oke I changed the /home/homeassistant/.homeassistant/blueprints/automation/vorion/send-camera-snapshot-notification-on-motion.yaml
The way you suggested after that i restarted HA.
Now wen i trigger the automation i get the notification on the phone without a picture again.
If i check on my desktop https://hass.mydomain.net:8123/local/tmp/snapshot_voortuin.jpg is now created and every time i trigger the automation the picture is renewed so that works.
There is no error anymore in the log but there is still no picture in the notification. Wen i open the webbrowser on my phone and load https://hass.mydomain.net:8123/local/tmp/snapshot_voortuin.jpg the browser canât load the picture it canât complete the request says the browser.
But the HA app is working so it is able to connect but somehow i canât reach the url in the browser anymore wile it could before.
MrBorg replied to someone else (check the reply arrow in the top right; it caught me out initially).
Your debugging steps with the browser are good. I need to think more. I canât imagine why it wonât work now. Perhaps try with another phone or just double check your phoneâs network settings?
Oh yes duh me
I think i donât have to tell you iâm new here
I set a self-signed certificate in configuration.yaml. I use this certificate also in other local websites. Wen i connect to those other websites Firefox for Android presents a security error and a exception option so i can enter the site. Not so wen i try to connect to https://hass.mydomain.net:8123/local/www/tmp/snapshot_voortuin.jpg then Firefox presents the text that it canât connect to the server.
Thankyou so much it works Perfectly. I am so amazed with how well it works. I didnt know I could even take a snapshot from the cameras I had but it worked. I was wondering I know this is out of this scope but do you know if there is a way to have a condition to turn this on. What I am thinking is using the alarmo intergration. Only notify and take a snapshot when the alarm is trigged and it would take a snapshot depending on the sensor that was trigged. That would be the dream but my coding is limited so I am not sure how to get that idea working. But this has shown it is possible.
Realy like this blueprint.
is there any posibility to get it to also send email?`
Would be perfect with an âawayâ function.
So i dont get pictures when i enter the area
Everything works as long as I put at least a 1 second delay-- but the image comes up like this in the notification.
I can find the actual JPG file inside /config/www/tmp but it doesnât show in the notification.
Any ideas?