Pushover Notifications

Hello, your application is excellent, and you’ve done a great job. However, like others on version 2023, I’m encountering the error “Cannot read properties of undefined (reading ‘name’).” Everything works fine; however, if a card appears after the Pushover card, it won’t be executed because it’s in an error state. I don’t know anything about programming, and I have the impression that, for now, no one wants to take over the code. Please, can you fix the problem? The only help I can offer is this: I asked ChatGPT if it had any ideas, and while it might say anything, it might help you. Here’s what it says:

(Note: The translation includes both the original text and the requested translation into English for context. The provided English translation addresses the technical issue mentioned in the original text.)

"The error message ‘Cannot read properties of undefined (reading ‘name’)’ means that the code is trying to access the ‘name’ property of an object that is undefined (null or not defined).

To fix this issue, you need to make sure that the object you’re trying to access the ‘name’ property on is defined and contains that property. In the code you provided, the line that generates this error is the following: let pDevice = args.device.name;. It seems that ‘args.device’ can be undefined in some situations. You can add a check to ensure that ‘args.device’ is defined before trying to access its ‘name’ property. For example: let pDevice = args.device ? args.device.name : ‘Fallback Name’;. This will prevent the error if ‘args.device’ is undefined. You can replace ‘Fallback Name’ with an appropriate default value if needed. Make sure to make this modification in all similar occurrences in your code to avoid other similar errors. I hope this helps and allows you to resolve the final issue for the transition to Homey 2023. Thank you."

Are there now 2 Pushover apps?

  • pushover notifications (for H2023 test)
  • pushover
    Would it be an idea to make it one app?

Hi all, I’ve just released an app:

My intentions are good. I am new to Homey and was looking for a notification with snapshot support (images from camera). After google-search, Pushover was the answer.

  1. I bought license on pushover.net
  2. Found out missing support for Homey Pro 2023 - the app was outdated/unsupported.
  3. I created a new app and went for app store submission.
  4. THEN found out an updated Pushover Notification app was in the making and in TEST app-store (dont remember how I found it). I dont know how long this app/version has been stalled in TEST. Also I was expericening issues with undefined and dont have the need for “user/group” specification/support.
  5. I’ve then realised the features of the app was kinda of overloaded (user, focus, delay etc.) = wanted some basic: title + message. More importantly the lack of support for snapshot made me want to proceed with this app submission.

I’ve just PM’ed @PandaNL about this. Did not know how to contact this fellow developer before.
Do not want to push someones buttons or take over someone else’s terroritory. Best intentions…

1 Like

Hello, can you tell me if in your version there is the possibility to choose the sound and the priority like the other version that is in testing?

At this moment i use both apps and in the new one it isn’t possible to choose sound or priority.
It would be great if the 2 apps integrate to 1 app with all that together!

Hi all, I will submit a new version with priority and sound tonight. App submission will not take long, typically one day or so. (if you cannot wait: Pushover App for Homey | Homey)

I can post an update here, when new version is out.

I’ve done some refactoring. Please help me test :smiley:

I need feedback with the following:
High Priority: with high priority both expire and retry is required.
Retry: Pushover will resend same notification with up to 30-seconds of delay
Expire: for how long the notification will continue to be retried for delivery

DO YOU GUYS WANT THIS? I mean it’s kinda complex with two intervals - we could setup 2-3 options.
If you want it, we need overloads for both notification-types: with image/snapshot and a version without image/snapshot. Future version

Btw. PandaNL have reached out. I will carry the future development for now.

1 Like

Lol, what a coincidence … as I just polished some things up and submitted my version to athom.

Mine is different in the fact that you can add keys/variables ( via labels ) in the cards and thus can send from different apps and/or send to more than 1 user.
It’s something i really wanted and needed and couldnt find.

Let’s hope we can make everyone happy by having multiple apps

Unfortunately, your app has not passed the certification process, due to the following:

— Your app is similar to an already newly published app namely Pushover by Kim Kokholm. As you might know we have a one app per brand policy. This makes it clear and easy for the end-users.

Well, there’s that … i guess you can’t use my version then.
Godspeed @Kim_Kokholm

Hahaha, beat you at the finish line.

No worries. Suggest the features or you can PR on github. We can defineately share the joy of development of pushover app.

1 Like

Updated version available in store.

@Wilfred_Greven sound and priority now supported. Take a look. Feedback appreciated.

1 Like

For me its all working! :+1:
Only missing is send to group.

Only missing is send to group.

I believe that this is working as well. You cannot select the group, but when I send to device (must create one) with the group name then it works for me.
So I have created new device and the devicename is then the name of the group. Maybe it works for you as well.

The messages are delivered so it does work :slight_smile:

It is working indeed! I am happy.
Now i use the pushover app and have deleted the pushover notification app (test version).

Glad to hear. I will remember to add Group in future release - should not be a problem.

Please let me know if anything is missing.

Input to future features: read device-list from api and maybe include “all devices” - if the api supports this.

Good day

Hello @Kim_Kokholm ,

Installed the app on HP23. It immediatly crashes. If i restart the app, it crash in 1 second.

Hi Marius. Did you remember to check the settings?

I did receive a crach report some days ago.
UserToken and devices are mandatory.

And are you sure it is this app+version: Pushover App for Homey | Homey + 1.0.3

I use group as @Mike_de_Vries told above and that works.
So at this moment i have no complaints :wink:

Is it not a good idea to go further in “Pushover” for now there are 2 apps in one discussiongroup.

I saw above a failure from the app, is it the right one??.

Same issue here. In 1 second the app crashed. When i hover the crashed text it says Exit Code: 1, Exit Signal: null.

1 Like

I’ve just pushed a new version.
I see a lot of crash reports, with Settings not configured. Please visit Settings > [Apps] Pushover > “Settings” and fill in all the fields

What version are you running? Just pushed version 1.0.4 (this will indicate what version of the app your are running - there are two candiates now.)

It is not possible to enter this, when the app crashes right after install and when you press the restart app button, it crashes again immediately.

But really, the different “Pushover” apps should have different topics, @Kim_Kokholm , can you make a new one for your app? We are totally messing up this one with Off-topic.