Skip to content
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

Beacon monitor remembers values from when it was disabled #3010

Closed
Hellis81 opened this issue Oct 28, 2022 · 34 comments · Fixed by #3398
Closed

Beacon monitor remembers values from when it was disabled #3010

Hellis81 opened this issue Oct 28, 2022 · 34 comments · Fixed by #3398
Labels
bug Something isn't working sensor-tracking

Comments

@Hellis81
Copy link

Hellis81 commented Oct 28, 2022

Home Assistant Android version:
beta-2762-93844ffe-full

Android version:
11
Phone model:
Motorola G9 play
Home Assistant version:
2022.10.0
Last working Home Assistant release (if known):

Description of problem:
I use the beacon monitor sensor to detect when we get home and open the door.
I also have an automation that detects when my spouse parks her car in the garage about 200 m from home (far from reachable with the beacon).
I heard the announcement that she had parked the car and that also enables the sensor using:

          - service: notify.mobile_app_petra
            data:
              message: command_beacon_monitor
              data:
                command: turn_on
                channel: beacon
                importance: high

This means her phone now listens for the beacon at home and when her phone sees it another automation will run that will open the door, this automation was triggered at the same time as the previous automation.
I opened the developer tools and had a look at her sensor and managed to get a screenshot of the issue

image

Here she is at least 200 m away with houses blocking and the sensor reports the state it was in when the sensor was turned off as she left home. Because I turn on and off the sensors since it's not needed and to make sure it does not wrongfully open the door (ironic).

I have managed to replicate the issue that when you enable the sensor and stand close to a beacon, turn it off and move away then turn on again, then the sensor will report the old state for a few seconds before it realizes it's not there.

Because of this bug the sensor and/or the command to turn it on/off is more or less useless.

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):


Screenshot of problem:

Additional information:

@Hellis81 Hellis81 added the bug Something isn't working label Oct 28, 2022
@dshokouhi
Copy link
Member

So your saying in HA you disable the sensor completely? Then later on you go on to enable it and the data is restored? That sounds more like HA core holding on to that data. Can you do me a favor and enable debug logging for the mobile app integration and reproduce the issue and grab the logs so we can see what data the app is sending back to HA core when the sensor is being enabled and disabled?

@Hellis81
Copy link
Author

The reason I believe it's the app is because I have my setting to update sensors at 1 minute interval.
And just a few seconds after I took the screenshot then the value disappeared, at the 1 minute ago.

But I can give that a try later today.

@Hellis81
Copy link
Author

Hellis81 commented Oct 30, 2022

I did a test now where I turned on the beacon had it on for a while, then turned it off, while it was off I unplugged the ESP generating the beacon then turned on the beacon sensor again.
The app reported the beacon as visible in the app settings for a few seconds.

This is the logs:

Logs
--------- beginning of main
10-30 06:43:56.069  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 12 lines
10-30 06:44:01.039  7928  8156 I chatty  : uid=10263(io.homeassistant.companion.android) RenderThread expire 2 lines
10-30 06:44:10.312  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 10 lines
10-30 06:44:26.177  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 3 lines
10-30 06:44:53.838  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 63 lines
10-30 06:44:53.860  7928 24886 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 28 lines
10-30 06:45:00.271  7928  7963 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-1 expire 1 line
10-30 06:45:01.176  7928  7943 I chatty  : uid=10263(io.homeassistant.companion.android) HeapTaskDaemon expire 3 lines
10-30 06:45:02.596  7928  7990 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-4 expire 2 lines
10-30 06:45:04.527  7928  2042 I chatty  : uid=10263(io.homeassistant.companion.android) expire 6 lines
10-30 06:45:04.543  7928  2043 I chatty  : uid=10263(io.homeassistant.companion.android) expire 1 line
10-30 06:45:04.591  7928  8399 I chatty  : uid=10263(io.homeassistant.companion.android) Binder:7928_5 expire 1 line
10-30 06:45:04.741  7928  2055 I chatty  : uid=10263(io.homeassistant.companion.android) expire 1 line
10-30 06:45:04.887  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 55 lines
10-30 06:45:05.309  7928 24886 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 33 lines
10-30 06:45:05.690  7928  7985 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-2 expire 2 lines
10-30 06:45:08.824  7928  7988 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-3 expire 1 line
10-30 06:45:09.019  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 16 lines
10-30 06:45:11.718  7928  2043 I chatty  : uid=10263(io.homeassistant.companion.android) expire 7 lines
10-30 06:45:12.224  7928  9463 I chatty  : uid=10263(io.homeassistant.companion.android) Binder:7928_9 expire 1 line
10-30 06:45:20.229  7928  8399 I chatty  : uid=10263(io.homeassistant.companion.android) Binder:7928_5 expire 1 line
10-30 06:45:21.715  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 20 lines
10-30 06:45:21.859  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 7 lines
10-30 06:45:21.862  7928  7990 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-4 expire 1 line
10-30 06:45:22.408  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 17 lines
10-30 06:45:22.579  7928  7943 I chatty  : uid=10263(io.homeassistant.companion.android) HeapTaskDaemon expire 1 line
10-30 06:45:22.706  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 5 lines
10-30 06:45:23.225  7928  7988 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-3 expire 1 line
10-30 06:45:23.424  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 7 lines
10-30 06:45:24.108  7928  8090 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 5 lines
10-30 06:45:26.499  7928  8035 I chatty  : uid=10263(io.homeassistant.companion.android) i.nabu.casa/... expire 2 lines
10-30 06:45:27.407  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 5 lines
10-30 06:45:27.584  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 1 line
10-30 06:45:27.586  7928  7963 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-1 expire 1 line
10-30 06:45:27.592  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 1 line
10-30 06:45:27.596  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 6 lines
10-30 06:45:27.623  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 20 lines
10-30 06:45:27.631  7928  2141 I chatty  : uid=10263(io.homeassistant.companion.android) expire 6 lines
10-30 06:45:27.641  7928  2154 I chatty  : uid=10263(io.homeassistant.companion.android) expire 1 line
10-30 06:45:27.641  7928  2156 I chatty  : uid=10263(io.homeassistant.companion.android) expire 1 line
10-30 06:45:27.644  7928 23101 I chatty  : uid=10263(io.homeassistant.companion.android) Binder:7928_B expire 1 line
10-30 06:45:28.198  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 1 line
10-30 06:45:28.345  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 1 line
10-30 06:45:28.358  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 2 lines
10-30 06:45:28.406  7928  7943 I chatty  : uid=10263(io.homeassistant.companion.android) HeapTaskDaemon expire 1 line
10-30 06:45:28.559  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 3 lines
10-30 06:45:28.660  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 2 lines
10-30 06:45:28.711  7928  6001 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 1 line
10-30 06:45:28.962  7928  7988 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-3 expire 1 line
10-30 06:45:29.109  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 24 lines
10-30 06:45:29.964  7928 24886 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 7 lines
10-30 06:45:29.967  7928  7990 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-4 expire 1 line
10-30 06:45:30.576  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 40 lines
10-30 06:45:30.831  7928  7943 I chatty  : uid=10263(io.homeassistant.companion.android) HeapTaskDaemon expire 1 line
10-30 06:45:30.894  7928 24886 I chatty  : uid=10263(io.homeassistant.companion.android) DefaultDispatch expire 12 lines
10-30 06:45:31.886  7928  7988 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-3 expire 1 line
10-30 06:45:32.348  7928  2154 I chatty  : uid=10263(io.homeassistant.companion.android) expire 3 lines
10-30 06:45:32.425  7928  7963 I chatty  : uid=10263(io.homeassistant.companion.android) WM.task-1 expire 1 line
10-30 06:45:32.795  7928  7928 I chatty  : uid=10263(io.homeassistant.companion.android) expire 2 lines
10-30 06:45:32.812  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:32.812  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: thm
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:32.812  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.003  7928  7928 E Parcel  : Class not found when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.003  7928  7928 E Parcel  : java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.003  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.003  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.003  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.003  7928  7928 E Parcel  : 	... 22 more
10-30 06:45:33.003  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.003  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.003  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.004  7928  7928 E Parcel  : Class not found when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.004  7928  7928 E Parcel  : java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.004  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.004  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.004  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.004  7928  7928 E Parcel  : 	... 22 more
10-30 06:45:33.005  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.005  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.005  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.005  7928  7928 E Parcel  : Class not found when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.005  7928  7928 E Parcel  : java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.005  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.005  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.005  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.005  7928  7928 E Parcel  : 	... 22 more
10-30 06:45:33.006  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.006  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.006  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.006  7928  7928 E Parcel  : Class not found when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.006  7928  7928 E Parcel  : java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.006  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.006  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.006  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.006  7928  7928 E Parcel  : 	... 22 more
10-30 06:45:33.007  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.007  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.007  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.023  7928  7928 E Parcel  : Class not found when unmarshalling: thm
10-30 06:45:33.023  7928  7928 E Parcel  : java.lang.ClassNotFoundException: thm
10-30 06:45:33.023  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.023  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.023  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: thm
10-30 06:45:33.023  7928  7928 E Parcel  : 	... 22 more
10-30 06:45:33.023  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.023  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: thm
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationPosted(NotificationSensorManager.kt:110)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:374)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2142)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.023  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.065  7928 24886 D LightSensor: Light sensor listener registered
10-30 06:45:33.189  7928  7928 D LightSensor: Light sensor listener unregistered
10-30 06:45:33.230  7928  7928 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
10-30 06:45:33.272  7928  7943 I mpanion.androi: NativeAlloc concurrent copying GC freed 336764(14MB) AllocSpace objects, 2(104KB) LOS objects, 49% free, 18MB/36MB, paused 249us total 283.217ms
10-30 06:45:33.316  7928 24886 D NextAlarm: Next alarm is scheduled by com.google.android.deskclock with trigger time 1667188800000
10-30 06:45:33.419  7928 24886 D ProximitySensor: Proximity sensor listener registered
10-30 06:45:33.436  7928 24886 D StepsSensor: Steps sensor listener registered
10-30 06:45:33.440  7928  7928 D ProximitySensor: Proximity sensor listener unregistered
10-30 06:45:33.447  7928  7928 D StepsSensor: Steps sensor listener unregistered
10-30 06:45:33.484  7928 24886 D UrlRepository: localUrl is: true and usesInternalSsid is: false
10-30 06:45:33.754  7928  7963 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=674e5a97-8c14-47dc-889d-b4cb769d2827, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
10-30 06:45:33.960  7928  7928 E Parcel  : Class not found when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.960  7928  7928 E Parcel  : java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.960  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.960  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.960  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.960  7928  7928 E Parcel  : 	... 24 more
10-30 06:45:33.960  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.960  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.960  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.961  7928  7928 E Parcel  : Class not found when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.961  7928  7928 E Parcel  : java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.961  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.961  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.961  7928  7928 E Parcel  : 	... 24 more
10-30 06:45:33.961  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.961  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.961  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.961  7928  7928 E Parcel  : Class not found when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.961  7928  7928 E Parcel  : java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.961  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.961  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.961  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.961  7928  7928 E Parcel  : 	... 24 more
10-30 06:45:33.962  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.962  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.962  7928  7928 E Parcel  : Class not found when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.962  7928  7928 E Parcel  : java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.962  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.962  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.962  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.962  7928  7928 E Parcel  : 	... 24 more
10-30 06:45:33.962  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.962  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.libraries.youtube.logging.interaction.InteractionLoggingScreen
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.962  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.973  7928  7928 E Parcel  : Class not found when unmarshalling: thm
10-30 06:45:33.973  7928  7928 E Parcel  : java.lang.ClassNotFoundException: thm
10-30 06:45:33.973  7928  7928 E Parcel  : 	at java.lang.Class.classForName(Native Method)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at java.lang.Class.forName(Class.java:454)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:3339)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.973  7928  7928 E Parcel  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:33.973  7928  7928 E Parcel  : Caused by: java.lang.ClassNotFoundException: thm
10-30 06:45:33.973  7928  7928 E Parcel  : 	... 24 more
10-30 06:45:33.973  7928  7928 E NotificationManager: Exception while trying to map notification bundle
10-30 06:45:33.973  7928  7928 E NotificationManager: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: thm
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelableCreator(Parcel.java:3365)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.Parcel.readParcelable(Parcel.java:3273)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.Parcel.readValue(Parcel.java:3175)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3568)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.BaseBundle.unparcel(BaseBundle.java:236)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.BaseBundle.keySet(BaseBundle.java:569)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:309)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle$default(NotificationSensorManager.kt:307)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.mappedBundle(NotificationSensorManager.kt:316)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.updateActiveNotificationCount(NotificationSensorManager.kt:230)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at io.homeassistant.companion.android.sensors.NotificationSensorManager.onNotificationRemoved(NotificationSensorManager.kt:168)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:419)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:445)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:458)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2152)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.os.Looper.loop(Looper.java:250)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at android.app.ActivityThread.main(ActivityThread.java:7851)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at java.lang.reflect.Method.invoke(Native Method)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-30 06:45:33.973  7928  7928 E NotificationManager: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
10-30 06:45:34.117  7928  7928 E mpanion.androi: No package ID ff found for ID 0xffffffff.
10-30 06:45:34.801  7928  7928 E mpanion.androi: No package ID ff found for ID 0xffffffff.
10-30 06:45:43.305  7928  7928 E mpanion.androi: Invalid ID 0x00000000.
10-30 06:45:43.376  7928 24886 D LogcatReader: Read logcat for pid 7928

@dshokouhi
Copy link
Member

the in app logs actually dont contain the data we are looking for here. We will need to see the debug logs from HA core for the mobile_app integration.

If you run the following service call you can temporarily extend the logger and pull the actual debug logs which contain the state update for the device in question.

service: logger.set_level
data:
  homeassistant.components.mobile_app: debug

after the test you can set the logger back to warn in the service in place of debug

an example of a sensor update will be:

2022-10-07 12:59:26.772 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from DEVICE for type update_sensor_states: [{'unique_id': 'ble_transmitter', 'state': 'Transmitting', 'type': 'sensor', 'icon': 'mdi:wifi', 'attributes': {}}]

@Hellis81
Copy link
Author

Hellis81 commented Nov 1, 2022

That service call does not exist
image

@dshokouhi
Copy link
Member

I thought the HA logger integration was included by default but i guess not: https://www.home-assistant.io/integrations/logger

@Hellis81
Copy link
Author

Hellis81 commented Nov 1, 2022

Here is a video of the issue.
In my opinion it seems as it's the app that sends the data.

https://www.youtube.com/watch?v=bLUBbh3HgVw

@dshokouhi
Copy link
Member

dshokouhi commented Nov 1, 2022

Thanks for the video, admittedly when I read disabled I was thinking the sensor itself was being disabled and not just the monitor aspect.

@leroyloren
Copy link

I am observing the same problem.

  1. I have the Beacon Monitor sensor permanently on
  2. based on my requirements, I turn on the Beacon monitor via command_beacon_monitor
  3. after a successful action, turn it off again via command_beacon_monitor
  4. In the case of e.g. manual activation, the original iBeacon will appear and the action will start again (of course it is no longer in range)

It seems that after turning off the Beacon Monitor sensor, the search remains in some intermediate space, and when it is subsequently activated, it is sent as if it has not been searched (even though it is not)

@Hellis81
Copy link
Author

It seems like a bug for sure.

@leroyloren
Copy link

leroyloren commented Jan 14, 2023

with the commit #3220, starting and stopping the sensor now works correctly.

But unfortunately, working with this issue is a problem.

  1. entering the zone - sending a command to activate the beacon_monitor

  2. when the beacon is recognized - start the action and turn off the beacon_monitor

  3. so far it's fine

  4. however, when the action is repeated again (entering the home zone, e.g. the next day), the behavior is as follows:

  5. entering the zone - sending a command to activate the beacon_monitor

  6. immediately trigger the action (without finding the beacon)

  7. the beacon_monitor is turned off

I use the beacon watch to trigger the door lock, at the moment the opening is triggered immediately upon entering the zone, regardless of finding the beacon, and because of this the automation is degraded, so the lock is triggered for example 100 m from the house.

In the log, a state is recorded when an action is triggered when the beacon_monitor sensor is triggered, even if I am no longer (100%) within range of the beacon

https://pastebin.com/YJRB6a2b

@Hakzel
Copy link

Hakzel commented Jan 16, 2023

I have the same issue and it seems like a real problem with the way the sensor works.

On "enable" the sensor should reset itself and definitely not simply broadcast the last state.
As the battery sensor is doing it correctly (after flight mode over night I don't get a spike in the next morning) I don't see why the beacon sensor can't reset itself after being enabled again.

This is a serious issue

@leroyloren
Copy link

Yes, this issus is very annoying and degrades the feature quite a bit. For now, I've treated this behavior with automation that will "start/stop" the sensor after some time to get it cleaned up and ready for its intended use.

@dshokouhi
Copy link
Member

Hey everyone I understand this issue has been a lil frustrating to deal with. I just made an attempt to fix this issue. If you would like to test the fix (which would be appreciated) please download the artifact from: https://github.com/home-assistant/android/actions/runs/3942701963

You'll need to extract the artifact and install the debug app. Notifications will only work with the persistent connection being enabled.

@leroyloren
Copy link

Thanks a lot @dshokouhi, it would be great if it could be released as a beta, I would like to test it in real conditions and scenarios. Not just on a table with a beacon simulator. I understand that the compiled version and its artifact cannot be used with FCM. I.e., real testing is limited.

@dshokouhi
Copy link
Member

I understand that the compiled version and its artifact cannot be used with FCM. I.e., real testing is limited.

you can enable the persistent connection and use the app just like the production version. The debug builds are designed to run side by side.

@leroyloren
Copy link

Ok, so I can normally receive command_beacon_monitor via mobile data outside my home wifi network?

@dshokouhi
Copy link
Member

the persistent connection uses the same URLs as the rest of the app so as long as you gave it a valid external address it will continue to work and function outside the home network. There will be some battery drain with the setting so its best to test the issue and then stop using the app.

@leroyloren
Copy link

Okay, I'll try it tomorrow and let you know.

@leroyloren
Copy link

Hey everyone I understand this issue has been a lil frustrating to deal with. I just made an attempt to fix this issue. If you would like to test the fix (which would be appreciated) please download the artifact from: https://github.com/home-assistant/android/actions/runs/3942701963

You'll need to extract the artifact and install the debug app. Notifications will only work with the persistent connection being enabled.

The issue with this version is unfortunately the same.

Attached log, if it helps.
https://pastebin.com/aYHTY5dt

@dshokouhi
Copy link
Member

Well that sucks, I was hopeful it would work and in my testing it seemed to work.

The attributes for the sensor are generated here beacons variable is where they are being stored.

https://github.com/home-assistant/android/blob/master/common/src/main/java/io/homeassistant/companion/android/common/sensors/BluetoothSensorManager.kt#L383

In my PR they are being cleared when the monitor stops here

https://github.com/home-assistant/android/pull/3236/files#diff-c836577f2bc4293dc16aea63e32dc43340dcae97ac840a806328495238d93567R66

Taking a closer look at the library I do see the following issue which actually seems to be the issue we have here.

AltBeacon/android-beacon-library#1103

I will try to rethink this approach, thanks for testing.

Given the first recommendation is to ignore the first set of values I would say for the time being stick with your workarounds. It seems if you ignore values for the first few seconds it should take care of the issue. If your automation is looking at the sensor to change state to Monitoring then I recommend adding a few second to the for parameter so it knows not to take the value the moment the monitor turns on.

trigger:
  platform: state
  entity_id: sensor.beacon_monitor
  to: Monitoring
  for:
    seconds: 5

Something like that should provide a good workaround while we try to skip the first set of invalid values.

@dshokouhi
Copy link
Member

Here's the new attempt that skips over the first set of values as they are cached. Would appreciate some feedback on this latest APK.

https://github.com/home-assistant/android/actions/runs/3952637822

@leroyloren
Copy link

leroyloren commented Jan 19, 2023

Hey, I'm sad to say, same behavior 😔

Edit:
On further testing, I found that:
- if I activate the switch manually in the Sensors section, the first batch is not sent.
- if I activate via command_beacon_monitor = turn_on, it does.

Edit2:
Unfortunately no, it behaves very erratically

@dshokouhi
Copy link
Member

@Adi146 would you be able to help us here? My attempts at fixing this issue have been unsuccessful thus far.

@Adi146
Copy link
Contributor

Adi146 commented Jan 21, 2023

As far as I remember there is an internal list of beacons and their distance. This bug sounds like we don't clear the list when the sensor gets disabled.

I have very limited time at the moment but I hope I can look at it soon.

@tkralphs
Copy link

tkralphs commented Feb 8, 2023

+1 I was also just bitten by this bug. Same scenario, an automation erroneously triggered the opening of my garage when I was not at home. Fortunately, my wife was at home. Thanks for looking into it. I'm happy to help if I can.

@birdwing
Copy link

I have a somewhat related but different issue happening.
I am working on automatically tracking Mileage in my wife and I's car.

Essentially only one of our phones can connect to the car at a time, so I turned on beacon and monitoring on both devices.
So if one device is connected, Home assistant knows whether or not both of us are in the car using the ibeacons.

However, the first test today showed a big issue. My phone did not remove her phones UUID from the beacon monitor attributes, until about 1.5 hours after she left.

I use the Mariah DB addon, so I wrote a SQL query to look at the states and state_attributes tables. (I will put the query I used at the bottom of my comment)
My phone is the sensor.aron_s_phone_beacon_monitor. For best practice I am only showing a portion of my wifes phones ibeacon UUID. but that can be seen in the shared_attrs column.

image

Newer entries are on the top. As you can see the last time my phone picked up my wife's phone was at 7:41AM when she dropped me off at work. However, the attributes were not updated for 1.5 hours until 9:22AM when I picked up my phone to check and see if everything had worked.

I have the companion app set to run in the background, but it appears that when my wife's phone became out of range, it does not trigger a state change. The app must have been asleep in the background, and never woke up to report the change to home assistant until I opened the app.

I have an android phone, and the companion app has permission to run in the background. I'm wondering if this is the real issue people are seeing. The app must be asleep in the background, and it wakes up to report when it has found a beacon or when monitoring is turned back on, however it doesn't wakeup to report when it has lost a beacon or when monitoring is turned off. Therefore the old attributes are still in HA the next time the beacon monitor is either turned on or detects a new beacon.

Here is the SQL query as promised so people can see that I was pulling all the records properly:

SELECT
	s.entity_id,
    s.state,
    s.last_updated_ts,
    FROM_UNIXTIME(s.last_updated_ts),
    sa.*
FROM states s
LEFT JOIN state_attributes sa ON s.attributes_id = sa.attributes_id
WHERE s.entity_id = 'sensor.aron_s_phone_beacon_monitor'
ORDER BY s.last_updated_ts DESC

@dshokouhi
Copy link
Member

@birdwing this is unrelated to this issue. Your issue sounds more like #3367

@birdwing
Copy link

@dshokouhi I'm not so sure. That issue had to do with device scanning interval. The interval in that issue was between 1min and 10s, vs the 1s foreground interval. Unless you are suggesting that my background scan interval was somehow set to 1.5 hours.

I am also not disabling my beacon monitor, it was never turned off. My wife's phone on the other hand, updated that mine was no longer in range minutes after she left (still not as instant as it should have been and probably related to the issue you just linked). However mine took over an hour to notice hers was gone.

Her phone was active (receiving text messages) and had High Accuracy location turned on, while mine didn't. I think the High accuracy location notifications kept the background process open enough for her phone to update (even slowly like in the posted issue) that mine was gone. While mine was asleep with nothing to wake it until I did.

@birdwing
Copy link

I'm suggesting that possibly, the companion app notices the beacons vanish, and updates the sensor on the app, but that it never reports the change to the sensor to the Home Assistant server in the background. When the app "wakes" the sensor gets reported back to the server, however any automations/triggers have possibly already fired with the old sensor data.

@dshokouhi
Copy link
Member

@birdwing its still unrelated to this issue as this issue is specifically about values being restored when the monitor is enabled. Please open a new issue and make sure to fill out the issue template so we can do proper troubleshooting.

@Adi146
Copy link
Contributor

Adi146 commented Mar 5, 2023

I opened a Pull Request #3398 to fix this bug

@dshokouhi
Copy link
Member

Thanks @Adi146 🙏

It would be great if users who are experiencing this issue can help test and confirm the fix by using the debug APK from this action

https://github.com/home-assistant/android/actions/runs/4336169426

@leroyloren
Copy link

After a quick test, it seems to be really okay with this commit.

@JBassett JBassett linked a pull request Mar 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sensor-tracking
Projects
None yet
8 participants