Hmm, that’s strange - last I saw, it was rejected due to the desire to continue using the third-party library instead of the APIs directly. I actually had a PR for the documentation too, but then had to roll that back.
Here’s an example in case it is actually live though:
Alternatively, the 3rd party pushnotify Python package written by Jeffrey Goettsch, the pushover Python 3 package written by Wyatt Johnson, and the Chump Python package written by Karan Lyons are available.
To send an image attachment, the 3rd party Requests library can be used. For example, to send the file “your_image.jpg”:
I’m trying to have my camera image sent to Pushover but still, with the custom component, have issues.
Could you share you automation lines so I can compare?
thanks
Thank you so much, it works now.
Although, it shows the live feed which, in my opinion, isn’t really what I need since ideally, I would need to image from when the even occurred…
Any way to push only the image of the event from when it occurred?
Actually, it worked the first time then without changing anything, got this error for the URL image: Received status=401 while trying to download http://192.168.1.149:65006/ISAPI/Streaming/channels/1/picture?
That’s a issue I am running into also (since 5 days or so). I found that when I use basic authentication on my camera it works again (Hikvision).
I am also building a setup at the office and we use Axis camera’s there. The problem is accessing the URL works when using basic authentication (set via the axis manager) but then HA can’t find the camera’s. I still did not solve that (spent almost the whole day yesterday on his)
I wonder if you guys could help, I can’t get past the folder whitelist issue. I’m using Homeassitant on Windows and it downloads a JPG image from my netatmo camera to c:\homeassistant\downloads\last.jpg this works fine but when it comes to sending the JPG via Pushover I get the error ‘downloads\last.jpg is not secure to load data from!’ even though the folder is whitelisted. I’m sure it’s probably related to the path syntax but I’ve tried forward and backward slashes and even tried with the JPG being located in the config folder but still no luck
Automations.yaml:
id: ‘1535480687632’
alias: Monitor for animals in back garden
trigger:
entity_id: binary_sensor.back_outdoor_animal
from: ‘off’
platform: state
to: ‘on’
action:
Hi folks,
still doesn’t work for me. Beginner here, so there might something basic be missing. What I have done:
set up pushover -> works!
loaded pushover.py from @brkr19 (getting You are using a custom component for notify.pushover which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. )
loading camera images into hass.io via still_image_url generally works
Leaving out the last three lines works like charm. Adding these lines however gives me the following error message: attachment: invalid message parameter
using attachment instead of file brings: Could not send notification: send_message() got multiple values for keyword argument 'attachment'
Since working with the url directly, I am not facing this “whitelist issue”, right? If the jpg is downloaded in the python script, I can’t see where and therefore can’t add anything to the whitelist.
Can anyone please point me in the right direction? Thanks!
EDIT: I just found out that deleting the last three lines doesn’t work with @brkr19 's script, getting the same attachment: invalid message parameter error as before …
Thanks for the hint. Spacing already drives me nuts in yaml files.
It doesn’t change anything though and all my automations use the spacing as I posted above and work well.