Cannot send a Pushover notification via Home Assistant

Pushsafer make it easy and safe to get push-notifications in real time on your Android or Windows mobile device, iPhone, iPad and Desktop!

Mit Pushsafer kann man in Echtzeit, einfach und sicher, Push-Benachrichtigungen auf sein iPhone, iPad, Android oder Windows Gerät sowie auf den Desktop senden lassen!

======================
Google Play
App Store
Windows Store
Homepage
ars4l4n
Posts: 5
Joined: 4. Apr 2025, 15:37

Cannot send a Pushover notification via Home Assistant

Postby ars4l4n » 4. Apr 2025, 15:47

Failed to perform the action notify.pushsafer. Unknown error

I tried sending a simple notification with the message “hi” to all of my devices that are connected to my Pushsafer account but it doesn’t work. I get the abovementioned error. I made a thread about this issue in the HA forums and someone said it looks like a bug. What now?
Image
YAML:

Code: Select all

action: notify.pushsafer
data:
  message: hi
It looks like this is the related log entry:

Code: Select all

Logger: homeassistant.components.websocket_api.http.connection
Source: components/pushsafer/notify.py:94
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 18:07:27 (5 occurrences)
Last logged: 18:21:36

[547336112880] Error handling message: Unknown error (unknown_error) Dungeon from 93.197.150.233 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36)
[545874146160] Error handling message: Unknown error (unknown_error) Dungeon from 93.197.150.233 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 816, in handle_execute_script
    script_result = await script_obj.async_run(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        msg.get("variables"), context=context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1808, in async_run
    return await asyncio.shield(create_eager_task(run.async_run()))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step
    self._handle_exception(
    ~~~~~~~~~~~~~~~~~~~~~~^
        ex, continue_on_error, self._log_exceptions or log_exceptions
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 762, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 256, in _async_notify_message_service
    await self.async_send_message(**kwargs)
  File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 236, in async_send_message
    await self.hass.async_add_executor_job(
        partial(self.send_message, message, **kwargs)
    )
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/pushsafer/notify.py", line 94, in send_message
    picture1 = data.get(ATTR_PICTURE1)
               ^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
Core2025.2.5
Supervisor2025.03.4
Operating System14.2
Frontend20250221.0

User avatar
admin
Site Admin
Posts: 1006
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Cannot send a Pushover notification via Home Assistant

Postby admin » 6. Apr 2025, 09:06

Unfortunately, I can't begin with this error.

It's best to seek help from a Home Assistant forum.
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10

ars4l4n
Posts: 5
Joined: 4. Apr 2025, 15:37

Re: Cannot send a Pushover notification via Home Assistant

Postby ars4l4n » 12. Apr 2025, 07:50

Another guy and me figured it out (https://community.home-assistant.io/t/u ... ?u=ars4l4n).

User avatar
admin
Site Admin
Posts: 1006
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Cannot send a Pushover notification via Home Assistant

Postby admin » 13. Apr 2025, 19:30

ars4l4n wrote:
12. Apr 2025, 07:50
Another guy and me figured it out (https://community.home-assistant.io/t/u ... ?u=ars4l4n).
:D
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10


Who is online

Users browsing this forum: No registered users and 67 guests