Closed brianhanifin closed 2 years ago
Hey Brian, thanks, glad you like it :)
I've transferred your issue to HASS.Agent, as that's where this is failing. I'll look into it and let you know!
Looks like it's failing in two places, at least when I'm trying to reproduce this.
For starters, the script was sending an empty image variable. I had to change the variable part as following (specifically the quotes, I didn't use a camera variable):
variables:
image: |
{%- set image = "http://homeassistant.local:8123" + state_attr("camera.garden","entity_picture") %}
{{ image }}
Afterwards I did receive a working url on my pc.
Perhaps your script already works fine: you can check by looking in the HASS.Agent logs - if you installed using the installer, they'll be in %appdata%\LAB02 Research\HASS.Agent\Logs
. If there are Error downloading image
exceptions, the url came through. Otherwise, you need to change the script.
This still didn't show the image; HASS.Agent failed to download the image, it got confused by the dot in camera.name
in the url.. Released a bugfix.
Let me know if this fixes it for you!
Your update fixed it! Thank you! I love the idea of being able to see who is at the door without having to getting my phone out of my pocket when I'm at my PC!
Great! Good to hear, that was also one of my main reasons for that function 😄
Added your idea of using the proxy to the README file, thanks!
First, this is nice. Thank you!
I would like to use this to popup a still image of the person at the front door. In my testing I found the following.
The following URL works:
While a dynamic URL pulled from the
entity_picture
attribute of a camera does not.FYI. in my
script.notify_pc
I use thevariables:
section to extract the dynamic URL.