New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate push notification #72329
Comments
notify documentation |
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( |
I think the notable error is actually:
It seems like the confirmation code response handler is having an issue finding the pending response, but it's also still doing the 10 second wait and firing through the HTTP call, making me think it's failing to add the "cancel this retry" value to the dictionary. |
Just posting a quick update: It's still happening (HA 2022.6.6 and iOS 2022.3), but I did notice that clearing one of the two notifications actually clears both. Not sure if it's important, but mentioning it nonetheless. I'm guessing it would only happen if iOS think it's the same notification. |
Another bit of info that might help: I noticed that when I clear the one notification, it removes both. Probably just confirms that it is an identical notification (e.g. if there's an underlying unique ID being used, both have the same ID). |
I don’t have the logs but I am seeing this exact issue on 2022.7–running in a VM Box. Clearing one notification clears the other automatically and it’s only happening with some notifications. |
Hopefully another instance of this issue can help us debug this pesky issue. Which mobile client (and version) are you seeing this on? Android or iOS? |
I am seeing this on iOS v15.5 with Home Assistant companion app version 2022.3 installed. Not sure if it helps but my notifications are all being fired out of NodeRed—including the ones that are duplicating and those that aren’t. |
Could you share more about your settings? Do you have local push enabled? |
I also occasionally get duplicate notifications on my Android devices (mine and my wife's Pixel phones). I am not using Local Push. Home Assistant 2022.7.6 Below is the automation from which the notifications originate. I am happy to provide additional information as needed.
|
This is still an ongoing issue. I've even had a case recently where the notification showed in triplicate. It really is the same notification, as was indicated by the logs before, but also since one can see in this screen capture chat clearing the one clears them all. RPReplay_Final1671893186.mov |
I solved it for me. The reason seams to be an defective cache of the android home assistant app. I received as many notifications as I had logged in with different credentials in the app. In the beginning of home assistant I was playing around with users so lot. Clearing the apps' cache and data left me with only one notification. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still an issue. |
Try to reset Push ID. It helped me. |
Thanks, I see it hasn't been mentioned, but unfortunately it doesn't fix this specific issue. EDIT: I remembered: This was covered on the HA post about this issue. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still happens, unfortunately. |
I am having the same issue of duplicate or occasionally quadruple notifications. My Home Assistant version is 2023.8.4 and the iOS app is on the latest version: 2023.460. I have followed a few steps that were recommended in the original forum thread as well as some solutions mentioned here on Github- without any success. My attempts to resolve this included:
. The following is my automation:
I am also coming across the following message in my HA logs:
To give a bit more context, the issue started happening for me when I duplicated the above existing automation via the iOS app, in order to create a new automation for the door sensor. The new automation does not include sending a notification- it simply plays some media, when the door is opened. I tried disabling this new automation to see if the issue would persist and unfortunately it does. I also double checked the mode of both automations because I wanted to make sure that these are set to "single". Finally, an interesting observation: when executing the automation via the app using the "run" function, I only receive a single notification. In case there is more information required, I'd be happy to provide this. Thanks for your help! |
Getting the same issues on Android... Seeing this is the log
the server_id part caught my eye Maybe a clue... maybe not Home Assistant 2023.10.3 Companion aoo: 2023.10.2-full |
Ah, thanks for capturing that. It's indeed still an issue for on iOS too. I haven't been able to catch the information you have. Perhaps the iOS logs are different. You might want to remove/obfuscate those webhook IDs though. |
Commenting to follow and leave my details as well: Core: 2023.11.2 |
FYI... my version of this "problem" has been resolved It turns out that there was a reference to an old phone. Somehow this resulted in the notification to both phones. But as the old one no longer exists it was redirected to the new phone. (or something like that) (you can search /config/.storage/core.entity_registration for your various phone names to see if this is the thing for you) |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
It still happens with varying degrees: Sometimes many notifications will be duplicated, sometimes only one or two (over the span of a day). |
Hello! Happens on mine and my wife's device too. Several times throughout the day. Versions: HA: |
The problem
I have a fairly simply automation that sometimes results in a duplicate notification. It's not the only one that exhibits this behaviour, but for simplicity of debugging the issue I'm focusing on only this one.
I logged this issue the first time in March on the forum in case it was an issue on my side. After some assistance from @zacwest it seems like I should report this as a bug.
Zac made a few suggestions, among which to include a random number to establish if it is indeed a duplicate notification and not simply a second notification due to some other issue.
I was already sure at the start that there isn't a duplicate event or state change – at least not what could be seen via the UI tools.
When I first logged this I was on 2022.2.9. I'm now on 2022.5.4. I keep my iOS companion app up to date all the time.
This is what the duplicate notification looks like:
Home Assistant.txt
:HomeAssistant-Extensions-PushProvider.txt
:This seems to be the key to the issue:
It seems like the local push fails and then the notification gets sent externally.
What version of Home Assistant Core has the issue?
core-2022.5.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
notify
Link to integration documentation on our website
https://www.home-assistant.io/integrations/notify/
Diagnostics information
I'd be happy to share the ZIP file of the companion app logs, but I don't know how to easily sanitise it.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: