@brkr19 great job on that custom component. I just used it in my guide. I’m hoping they include the ability to include attachments with Pushover in the default notification.
I just installed v.91 - for some reason this custom component is no longer overriding the default pushover component. I’ve been running the custom component for almost a year without issue - I had to change the folder structure several releases ago to custom_components/pushover/notify.py and all was working great until now.
Anyone else having this issue? Is there a way to force HA to pickup the custom pushover component?
EDIT
Was able to get this working again in v.91 - not sure if this issue popped up for anyone else in .91 but here’s what I did to fix it:
1.) Modified the custom component directory name /custom_components/pushover/ to /custom_components/pushover_file
2.) added Domain = ‘pushover_file’ after the _Logger line in the notify.py file
3.) Modified my configuration.yaml to reference platform: pushover_file vs platform: pushover
I was able to get it working following your instructions, but did not have to do step 2. Basically just renamed folder and updated config.yaml
I’m unsure how to follow these instructions… with this pushover_file mention and "notify.py (which one is that?)
This is my actual setup:
in “/custom_components/notify”, I have this:
“pushover.py”
And since latest update, it’s not working (since it uses the same name as built in one I presume)
I think I need to create the structure /custom_components/pushover/notify.py but so not sure how to do this and what to modify… (plus I think I need to rename to something else but unsure where to fix everywhere it could refer to it)…
But I did not have to do step 2. Bottom line, the folder name can no longer be the same name as a existing component.
in this procedure, what is “pushover_file” a folder or the pushover "notify.py file?
edit: ok, I got it…
/custom_components/pushover_custom/notify.py
Edit the platform in notify.yaml to “pushover_custom” instead of “pushover” (based on my choice of folder name)
You can also create a group of devices in pushover with its own key and use that to notify multiple users/devices as one operation.
didn’t know that, thanks!
Amazing that pushover is 2.0 in hass…why not just get this stuff in the default?
It would be very nice to have this feature (and the new animated gifs) into the default pushover component of HASS!
Local as well.
I tried this for the first time today. For a new user it took some time of trial and error with all variants above.
This is how I made it work:
- Download pushover.py
- Save it as /custom_components/pushover_file/notify.py
- Add line:
Domain = 'pushover_file'
after the_Logger
line in notify.py - Add
whitelist_external_dirs
- /tmp
to configuration.yaml - Reboot
- Automation:
- service: camera.snapshot
data:
entity_id: camera.cam01
filename: '/tmp/snapshot_camera01.jpg'
and
- service: notify.pushover_file
data_template:
message: 'Alert - {{now().strftime("%Y-%m-%d %H:%M")}}'
data:
title: Alarm
data:
file:
path: /tmp/snapshot_camera01.jpg
priority: 1
- Profit.
Thanks to everyone that contributed in the thread!
Hi guys,
has anyone updated to 0.92 and can they confirm everything with the component is working?
Not for me. I’ve updated from 0.87 to 0.92, and this is the only thing that doesn’t seem to be working.
I’ve tried various different things from this thread. I’m getting this error:
attachment: invalid message parameter
And I’m seeing this in the startup. Not sure if it’s the issue:
[homeassistant.util.package] Attempting install of python-pushover==0.3
Works for me still…
Can you share your custom component and config please?
It the one from here with folder structure mentioned there:
Yeah, that’s what I used. I missed a step though, the manifest.json still had “python-pushover==0.3” in for the requirements
Updated to 0.4 and it’s sorted now
I’m on 0.92 and I’m also getting the attachment: invalid message parameter
And the error is coming from the custom_component.
@orson1282 Have you updated the manifest.json to have python-pushover 0.4 in the requirement? When I copied the original over from the HA install it was forcing 0.3 to be installed. Changing that fixed it for me. What version of python-pushover do you have?