Closed Iceman248 closed 1 year ago
Please force stop the app and open it again so we can see what happens when the app checks in with firebase. Also what are your persistent connection settings?
Thanks. Currently, I set it to Always to try to see how much better it may or may not perform, although I've had it set to when screen is on to minimize battery hit. When I force stop and reopen, do I need to set that setting to Never to get a proper check in with Firebase or does it not matter?
it doesnt matter, just want to see the communication that happens when the app tries to make the connection.
Also you're logs has several errors. What kind of device is this? Custom ROM?
12-04 16:06:27.459 4563 12592 E NetworkSM: Error getting response from external service
12-04 16:06:27.459 4563 12592 E NetworkSM: java.net.ConnectException: Failed to connect to api.ipify.org/0.0.0.0:443
This above error means the Public IP sensor is not functioning.
and
12-04 16:08:05.661 4563 12862 E IntegrationRepository: Unable to get notification rate limits
12-04 16:08:05.661 4563 12862 E IntegrationRepository: retrofit2.HttpException: HTTP 403
The app is unable to read notification rate limits.
Log below after force stop. I am using the stock ROM on my OnePlus 7T, nothing custom, nor is it rooted or anything like that.
I see my cellular Public IP in the app, even when connected to WiFi, not sure if that is by design or not. I thought I read something about rate limits, but don't know why that is.
Looking back through the history, it does have my home Internet's Public IP in there sporadically. As often as I am connected to home WiFi, seems like it should be there more often, but recently it seems to only be my cellular Public IP.
12-05 11:25:45.608 27608 27638 E FirebaseMessaging: Failed to get FIS auth token
12-05 11:25:45.608 27608 27638 E FirebaseMessaging: java.util.concurrent.ExecutionException: com.google.firebase.installations.FirebaseInstallationsException: Firebase Installations Service is unavailable. Please try again later.
This would explain some things, the app is unable to even connect to firebase to get an authorization token so it can use it as a fallback.
At this point lets also look at the debug logs from home assistant mobile app integration.
Please extend the logger
integration and enable debug logging with homeassistant.components.mobile_app: debug
then force stop and open the app again so we can see what registration data is being sent over.
Looking back through the history, it does have my home Internet's Public IP in there sporadically. As often as I am connected to home WiFi, seems like it should be there more often, but recently it seems to only be my cellular Public IP.
what about VPN or proxy that could be blocking the call?
Thanks. It's inability to connect had me think a bit harder and I realized that I didn't whitelist the cloud DNS filter I'm using, only the local one I have. There was a list that was updated recently that blocked the firebase at both and once I unblocked it at the cloud level, things are working again.
@Iceman248 can you be a bit more specific please on how you solved this?
I suspect I may have the same issue and wonder if it's somehow related yo my pihole filtering
@Iceman248 can you be a bit more specific please on how you solved this?
I suspect I may have the same issue and wonder if it's somehow related yo my pihole filtering
The only entry I had to whitelist was this one.
firebaseinstallations.googleapis.com
Well well well, looking into my pihole it looks like it was the 2nd most blocked domain in the past 24 hours :grimacing:! So that makes sense I guess :) Thanks!
In my case, the error was caused by orphaned HA companion device entity. This caused my automation to stop 😞 version HA 24.06
Home Assistant Android version: 2022.11.0-full
Android version: 10
Phone model: OnePlus 7T
Home Assistant version: 2022.11.5
Last working Home Assistant release (if known): Issue didn't happen after update of any kind
Description of problem: Getting error: device not connected to local push notifications. Just started happening 2 days ago, never had seen it before, no updates done on anything related at all or any settings changes. I have researched and tried different things which sometimes temporarily have gotten things going, still narrowing things down, but it seems to be issue with Google Firebase notifications when I am not connected through WebSocket, but after I turned off WiFi but still had direct connection, I still received the error, so it doesn't necessarily seem to only be issue with Google Firebase, but at least mostly. I did grab the log. I did notice some FIrebase stuff in my adblocker, but even thought for a moment like it may have had something to do with it, it has happened afterwards, then I realized it happened when not using it anyways.