-
Notifications
You must be signed in to change notification settings - Fork 590
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
Device not connected to local push notifications #4363
Comments
yes please do add the logs they are required for troubleshooting this issue. We will need logs at the time of occurence. When this happens does the persistent notification stay or disappears? |
I actually don't since I had it hidden, I made it visible again to check on that. Will update in the following days, thanks for the quick reply. |
@dshokouhi is it normal that the log only shows a couple minutes ? Whenever I checked it was just a couple minutes / hours not since the app start. So I had the problem again 2 times, triggering a websocket message from homeassistant this time didn't even throw an error but it would still not pop up on the phone. The persistent notification is displayed all the time. As far as I can see from the logs the websocket ping seems to work. Log during problem: After killing Homeassistant App and starting it again it immediately works: Log after restart: |
yes logs only generate for the provided UID the app gets which is controlled by the Android OS.
yup thats correct the pings are working which suggests the connection is still active. I think we may need some help from HA core now. |
Home Assistant Android app version(s):
2024.4.1-minimal (from f-droid)
Android version(s):
11
Device model(s):
surya
Home Assistant version:
core 2024.4.3
Last working Home Assistant release (if known):
Description of problem, include YAML if issue is related to notifications:
I'm making heavy usage of websocket push notifications (not using cloud integration!)
My Homeassistant instance is exposed publicly with my own domain via https and the app is set to
Persistent connection: Always
with only the external domain set, internal domain is left empty.Every couple days they randomly stop working and if a automation is triggered it logs the following error in HomeAssistant
2024-04-22 16:20:48.366 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: Device not connected to local push notifications
Just opening the app does not fix it, the app works but no push messages are received, it is not reconnecting automatically.
Killing the android app and opening it up again immediately fixes it but it usually takes me some time to notice the problem.
Restarting Homeassistant for example also works, in that case it reconnects just fine, I assume it's some weird edge case / deadlock.
Companion App Logs:
I just wiped and reinstalled the app in hope that it helps, I will add logs once the problem happens again.
Screenshot or video of problem:
Additional information:
The text was updated successfully, but these errors were encountered: