Phone state never shows ringing

Here goes:

--------- beginning of main
10-20 16:48:12.904  2847  2847 D ActivitySM: Received activity update.
10-20 16:48:41.057  2847  2847 D SensorReceiver: Received intent: android.intent.action.SCREEN_OFF
10-20 16:48:41.057  2847  2847 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_OFF is disabled, skipping sensors update
10-20 16:48:41.057  2847  2847 D ButtonWidget: Broadcast received: 
10-20 16:48:41.057  2847  2847 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_OFF
10-20 16:48:41.057  2847  2847 D ButtonWidget: AppWidgetId: -1
10-20 16:48:41.058  2847  2847 D MediaPlayCtrlsWidget: Broadcast received: 
10-20 16:48:41.058  2847  2847 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_OFF
10-20 16:48:41.058  2847  2847 D MediaPlayCtrlsWidget: AppWidgetId: -1
10-20 16:48:41.058  2847  2847 D ActivitySM: Received activity update.
10-20 16:48:41.103  2847 15863 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:48:41.104  2847  2875 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=ff947415-478d-4cc6-ba73-3853e9842619, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
10-20 16:49:27.795  2847  2847 D SensorReceiver: Received intent: android.intent.action.SCREEN_ON
10-20 16:49:27.796  2847  2847 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_ON is disabled, skipping sensors update
10-20 16:49:27.796  2847  2847 D ButtonWidget: Broadcast received: 
10-20 16:49:27.796  2847  2847 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_ON
10-20 16:49:27.796  2847  2847 D ButtonWidget: AppWidgetId: -1
10-20 16:49:27.796  2847  2847 D SensorReceiver: Received intent: android.intent.action.PHONE_STATE
10-20 16:49:27.800  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:27.801  2847  2847 D MediaPlayCtrlsWidget: Broadcast received: 
10-20 16:49:27.801  2847  2847 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_ON
10-20 16:49:27.801  2847  2847 D MediaPlayCtrlsWidget: AppWidgetId: -1
10-20 16:49:27.803  2847  2898 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:27.804  2847  2898 D ActivitySM: Unregistering for activity updates.
10-20 16:49:27.804  2847  2898 D ActivitySM: Registering for activity updates.
10-20 16:49:27.810  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:27.816  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:27.816  2847  2847 D SensorReceiver: Received intent: android.intent.action.PHONE_STATE
10-20 16:49:27.818  2847  2847 D ActivitySM: Received activity update.
10-20 16:49:27.819  2847 15863 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:27.837  2847 15863 D ActivitySM: Unregistering for activity updates.
10-20 16:49:27.837  2847 15863 D ActivitySM: Registering for activity updates.
10-20 16:49:27.853  2847  2893 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:27.854  2847  2890 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=e3fa3daf-0a9a-459a-ad1d-cc53cea3e4fa, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
10-20 16:49:27.926  2847  2847 W GeocodeSM: Skipping geocoded update as accuracy was not met: 576.872
10-20 16:49:27.931  2847  2847 W GeocodeSM: Skipping geocoded update as accuracy was not met: 576.872
10-20 16:49:27.958  2847  2898 D NextAlarm: No alarm is scheduled, sending unavailable
10-20 16:49:27.961  2847 15863 D NextAlarm: No alarm is scheduled, sending unavailable
10-20 16:49:27.976  2847  2898 D StepsSensor: Steps sensor listener registered
10-20 16:49:27.981  2847 15863 D StepsSensor: Re-registering listener as it appears to be stuck
10-20 16:49:27.988  2847  2877 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:27.990  2847 15863 D StepsSensor: Steps sensor listener registered
10-20 16:49:27.992  2847  2877 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:27.998  2847  2878 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:28.001  2847  2878 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:28.012  2847 22999 D TrafficStats: tagSocket(105) with statsTag=0xffffffff, statsUid=-1
10-20 16:49:28.012  2847 22995 D TrafficStats: tagSocket(100) with statsTag=0xffffffff, statsUid=-1
10-20 16:49:28.383  2847  2877 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:28.389  2847  2878 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:28.425  2847 22994 I SensorReceiver: Sensor updates and sync completed
10-20 16:49:28.426  2847  2878 I SensorReceiver: Sensor updates and sync completed
10-20 16:49:29.314  2847  2847 D WebviewActivity: Matter commissioning status changed to NOT_STARTED
10-20 16:49:29.319  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.321  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.321  2847  2847 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1697816308960, currentMillis: 1697816969321)
10-20 16:49:29.405  2847 13853 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":11}
10-20 16:49:29.408  2847  2847 D LocBroadcastReceiver: Received location update.
10-20 16:49:29.409  2847  2847 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
10-20 16:49:29.410  2847  2878 D LocBroadcastReceiver: Last Location: 
10-20 16:49:29.410  2847  2878 D LocBroadcastReceiver: Coords:(52.XXXXXXX, -1.XXXXXXX)
10-20 16:49:29.410  2847  2878 D LocBroadcastReceiver: Accuracy: 14.786
10-20 16:49:29.410  2847  2878 D LocBroadcastReceiver: Bearing: 0.0
10-20 16:49:29.411  2847  2878 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
10-20 16:49:29.411  2847  2878 D LocBroadcastReceiver: Received location that is 4598 milliseconds old, 1697816964813 compared to 1697816969411 with source fused
10-20 16:49:29.414  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.414  2847  2847 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1697816308960, currentMillis: 1697816969414)
10-20 16:49:29.419  2847  2878 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.421  2847  2875 I WM-Processor: Moving WorkSpec (d8bfc9ae-9495-4014-b967-15277f128758) to the foreground
10-20 16:49:29.425  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.425  2847  2847 D ServerConnectionInfo: Using external URL
10-20 16:49:29.426  2847 22994 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.427  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.427  2847  2847 D ServerConnectionInfo: Using external URL
10-20 16:49:29.431  2847  2847 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
10-20 16:49:29.437  2847 22994 D SensorWorker: Updating all Sensors in foreground.
10-20 16:49:29.437  2847  2875 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=2b0704b7-4e9b-406e-b8c7-bbb295a88688, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
10-20 16:49:29.444  2847 22994 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.446  2847 22994 D ActivitySM: Unregistering for activity updates.
10-20 16:49:29.446  2847 22994 D ActivitySM: Registering for activity updates.
10-20 16:49:29.451  2847  2877 D LocBroadcastReceiver: Location update sent successfully for 1 as exact
10-20 16:49:29.507  2847  2847 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
10-20 16:49:29.519  2847 22994 D NextAlarm: No alarm is scheduled, sending unavailable
10-20 16:49:29.527  2847 22994 D StepsSensor: Re-registering listener as it appears to be stuck
10-20 16:49:29.537  2847 22994 D StepsSensor: Steps sensor listener registered
10-20 16:49:29.539  2847  2847 D StepsSensor: Steps sensor listener unregistered
10-20 16:49:29.549  2847  2877 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.554  2847  2877 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.611  2847  2877 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.630  2847  2877 I SensorReceiver: Sensor updates and sync completed
10-20 16:49:29.630  2847  2891 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=d8bfc9ae-9495-4014-b967-15277f128758, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
10-20 16:49:29.634  2847  2847 I WM-SystemFgDispatcher: Stopping foreground service
10-20 16:49:29.943  2847 13853 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":12}
10-20 16:49:29.946  2847  2847 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:29.983  2847 13853 D WebviewActivity: External bus {"type":"theme-update","id":13}
10-20 16:49:29.995  2847  2847 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
10-20 16:49:29.995  2847  2847 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
10-20 16:49:29.995  2847 22994 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
10-20 16:49:29.995  2847 22994 I WebViewPresenterImpl: Found color -15720924.
10-20 16:49:29.996  2847 22994 D WebViewPresenterImpl: Try getting color from webview color "#111111".
10-20 16:49:29.996  2847 22994 I WebViewPresenterImpl: Found color -15658735.
10-20 16:49:33.510  2847 13853 D WebviewActivity: External bus {"type":"config_screen/show","id":14}
10-20 16:49:33.525  2847  2847 D IntegrationRepository: setAppActive(): false
10-20 16:49:33.525  2847  2847 D IntegrationRepository: setAppActive(): false
10-20 16:49:33.531  2847  2847 D SensorReceiver: Received intent: io.homeassistant.companion.android.UPDATE_SENSORS
10-20 16:49:33.534  2847 22994 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:33.535  2847 22994 D ActivitySM: Unregistering for activity updates.
10-20 16:49:33.536  2847 22994 D ActivitySM: Registering for activity updates.
10-20 16:49:33.562  2847 22994 D NextAlarm: No alarm is scheduled, sending unavailable
10-20 16:49:33.563  2847  2847 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1697816308960, currentMillis: 1697816973563)
10-20 16:49:33.569  2847 22994 D StepsSensor: Steps sensor listener registered
10-20 16:49:33.571  2847  2847 D StepsSensor: Steps sensor listener unregistered
10-20 16:49:33.573  2847 22994 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:33.576  2847 22994 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:33.612  2847  2877 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:33.627  2847 22995 D TrafficStats: tagSocket(296) with statsTag=0xffffffff, statsUid=-1
10-20 16:49:33.630  2847 22994 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
10-20 16:49:33.639  2847  2847 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
10-20 16:49:33.641  2847  2847 D SettingsWearDetection: API unavailable for discovering nodes (no Wear)
10-20 16:49:33.648  2847 22994 I SensorReceiver: Sensor updates and sync completed
10-20 16:49:33.728  2847  2847 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1697816308960, currentMillis: 1697816973728)
10-20 16:49:33.728  2847  2847 D IntegrationRepository: setAppActive(): true
10-20 16:49:34.127  2847  2847 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=androidx.activity.OnBackPressedDispatcher$Api33Impl$$ExternalSyntheticLambda0@4669791
10-20 16:49:36.932  2847 22994 D LogcatReader: Read logcat for pid 2847

You can see the Call come in, but it never made it to changing the sensor status.

I can see 2 different intents coming in and within 1 second we are sending both updates.

OK, but that update never made it to the actual server to do anything:

image

Any idea why the server wouldn’t see the update?

to troubleshoot that youll need to enable debug logging for the mobile app integration then look at the debug log line in HA core that shows the webhook data from the sensor update coming in.

Sure.

Same thing here but now the debug logs.

Pixel 7 was used to call Pixel 6.

023-10-20 17:05:40.342 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Pixel 7 for type get_config: {}
2023-10-20 17:05:41.182 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Pixel 7 for type update_sensor_states: [{'unique_id': 'detected_activity', 'state': 'walking', 'type': 'sensor', 'icon': 'mdi:walk', 'attributes': {'in_vehicle': 10, 'on_bicycle': 2, 'on_foot': 78, 'running': 0, 'unknown': 0, 'walking': 78}}, {'unique_id': 'battery_level', 'state': 52, 'type': 'sensor', 'icon': 'mdi:battery-50', 'attributes': {}}, {'unique_id': 'battery_temperature', 'state': 26.3, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -8.49, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -2.30125, 'voltage': 3.69}}]
2023-10-20 17:05:45.503 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Pixel 7 for type get_config: {}
2023-10-20 17:05:46.669 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Pixel 7 for type update_sensor_states: [{'unique_id': 'detected_activity', 'state': 'unknown', 'type': 'sensor', 'icon': 'mdi:progress-question', 'attributes': {'in_vehicle': 10, 'on_bicycle': 10, 'on_foot': 10, 'running': 10, 'still': 10, 'unknown': 41, 'walking': 10}}, {'unique_id': 'battery_power', 'state': -7.8, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -2.114687, 'voltage': 3.69}}]

Phone Logs from Pixel 6 are similar to above and show that the sensor data was sent.

It never made it to the core.

I think this is similar to this issue.

I also have migrated to new hardware this week.

no it did make it but the sensor itself showed no data. Sounds like an API issue on the device as we are dependent upon that data.

Is there anything I can do about that?

For a laugh I reinstalled and reconfigured the app on both phones. Maybe that helps.

Did you get this resolved?

@dshokouhi I have a similar issue. Sensor states do not update.

Core 2023.11.3
Supervisor 2023.11.6
Operating System 11.1
Frontend 20231030.2

Pixel 6 / Android 14
Android App version 2023.10.2-full
WebView 119.0.6045.163

Note: The sensor state was updating correctly (instantly) but battery drain on the Pixel 6 seemed excessive (~35% battery use over night when the phone was idle) so I decided to follow the Starting fresh with Android app instructions. Sensor state (sensor.ma_pixel_phone_state) does not update promptly as it did before. The sensor seems to update when the mobile_app is open.

Here is a summary of the attached logs:

2023-11-28 17:23:43.617 Mark’s Pixel Calls MA Pixel
2023-11-28 17:23:47.295 MA’s Pixel state = ringing
2023-11-28 17:23:57.217 Mark’s Pixel hangs up (state = idle)

5 minutes later (I think due to me opening MA’s Pixel HA mobile app to check settings / status)

2023-11-28 17:28:20.056 MA’s Pixel state = idle

HA Debug Log
2023-11-28 17:23:43.268 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:23:43.617 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 29.2, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -5.5, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.37146, 'voltage': 4.009}}, {'unique_id': 'phone_state', 'state': 'offhook', 'type': 'sensor', 'icon': 'mdi:phone-in-talk', 'attributes': {}}]
2023-11-28 17:23:47.072 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:23:47.086 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:23:47.295 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'phone_state', 'state': 'ringing', 'type': 'sensor', 'icon': 'mdi:phone-in-talk', 'attributes': {}}]
2023-11-28 17:23:47.870 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'phone_state', 'state': 'ringing', 'type': 'sensor', 'icon': 'mdi:phone-in-talk', 'attributes': {}}]
2023-11-28 17:23:56.965 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:23:57.217 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 29.3, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -4.76, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.184082, 'voltage': 4.018}}, {'unique_id': 'phone_state', 'state': 'idle', 'type': 'sensor', 'icon': 'mdi:phone', 'attributes': {}}]
2023-11-28 17:26:25.790 ERROR (MainThread) [somecomfort] API returned 200 from /portal/Device/CheckDataSession/1088545 request
2023-11-28 17:28:19.954 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:28:19.975 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:28:20.056 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'phone_state', 'state': 'idle', 'type': 'sensor', 'icon': 'mdi:phone', 'attributes': {}}]
2023-11-28 17:28:20.113 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'phone_state', 'state': 'idle', 'type': 'sensor', 'icon': 'mdi:phone', 'attributes': {}}]
2023-11-28 17:28:24.341 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:28:49.954 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:28:50.143 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'battery_level', 'state': 97, 'type': 'sensor', 'icon': 'mdi:battery-90', 'attributes': {}}]
2023-11-28 17:28:55.764 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:29:55.800 ERROR (MainThread) [somecomfort] API returned 200 from /portal/Device/CheckDataSession/1946190 request
2023-11-28 17:30:25.733 ERROR (MainThread) [somecomfort] API returned 200 from /portal/Device/CheckDataSession/2577885 request
2023-11-28 17:31:11.706 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:31:25.833 ERROR (MainThread) [somecomfort] API returned 200 from /portal/Device/CheckDataSession/1088545 request
2023-11-28 17:32:13.301 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:34:03.555 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:34:03.890 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 23.1, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -0.68, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -0.168151, 'voltage': 4.057}}]
2023-11-28 17:37:55.880 ERROR (MainThread) [somecomfort] API returned 200 from /portal/Device/CheckDataSession/1946190 request
2023-11-28 17:42:38.323 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_registration: {'app_version': '2023.10.2-full (11484)', 'device_name': 'Marks Pixel', 'manufacturer': 'Google', 'model': 'Pixel 4a', 'os_version': '33', 'app_data': {'push_websocket_channel': True, 'push_url': 'https://mobile-apps.home-assistant.io/api/sendPush/android/v1', 'push_token': 'f1QCTI7F5Sk:APA91bHQWQktd_YIu3JR5WLXbk6F2FgMYZgmYJTwztrL4h-HY5Ib4bloxNoEzY574ViuoRb09TUmR9lITAdQZ-VPEjuJW8Lap01A7jA9BKp20dMxInveTpD7JDJ4XUzEWKhbA1UJmOLh'}}
2023-11-28 17:42:38.383 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:42:38.566 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:42:38.679 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 22.3, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -2.77, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -0.695496, 'voltage': 3.98}}]
2023-11-28 17:42:46.259 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:42:46.387 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_power', 'state': -3.27, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -0.822754, 'voltage': 3.98}}]
2023-11-28 17:44:01.458 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_registration: {'app_version': '2023.10.2-full (11484)', 'device_name': 'MA Pixel', 'manufacturer': 'Google', 'model': 'Pixel 6', 'os_version': '34', 'app_data': {'push_websocket_channel': True, 'push_url': 'https://mobile-apps.home-assistant.io/api/sendPush/android/v1', 'push_token': 'cHOGd_PkQ5uSwb6ona9Rsi:APA91bF-LxaKd9Dv81FFhTigdNJ2aqurWF6FJG7o0lV-yXSykqv2noUV87LnLOqQkYIUy-VbqRsifOFRufbFG6wNv81vsfjSOCio4CniyIg76wX-4TGjgzhyivvc1mQ_exHMMcXy9eQ-'}}
2023-11-28 17:44:01.508 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:44:01.517 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:44:01.690 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'battery_level', 'state': 96, 'type': 'sensor', 'icon': 'mdi:battery-90', 'attributes': {}}]
2023-11-28 17:44:03.979 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:46:55.872 ERROR (MainThread) [somecomfort] API returned 200 from /portal/Device/CheckDataSession/2577885 request
2023-11-28 17:47:43.667 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:47:43.789 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'battery_level', 'state': 95, 'type': 'sensor', 'icon': 'mdi:battery-90', 'attributes': {}}]
2023-11-28 17:48:01.973 ERROR (MainThread) [somecomfort] API returned 200 from /portal/Device/CheckDataSession/1088545 request
2023-11-28 17:48:04.434 ERROR (MainThread) [somecomfort] API returned 500 from /portal/Device/CheckDataSession/2577885 request
2023-11-28 17:48:26.628 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:48:26.819 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 24.4, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -2.61, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -0.654297, 'voltage': 3.992}}]
2023-11-28 17:48:33.080 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:48:33.226 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 24.5, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -5.31, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.347352, 'voltage': 3.942}}, {'unique_id': 'phone_state', 'state': 'offhook', 'type': 'sensor', 'icon': 'mdi:phone-in-talk', 'attributes': {}}]
2023-11-28 17:48:44.246 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:48:44.407 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_level', 'state': 68, 'type': 'sensor', 'icon': 'mdi:battery-60', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -2.68, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -0.666809, 'voltage': 4.013}}, {'unique_id': 'phone_state', 'state': 'idle', 'type': 'sensor', 'icon': 'mdi:phone', 'attributes': {}}]
2023-11-28 17:49:04.455 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:49:04.513 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:49:04.599 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_registration: {'app_version': '2023.10.2-full (11484)', 'device_name': 'MA Pixel', 'manufacturer': 'Google', 'model': 'Pixel 6', 'os_version': '34', 'app_data': {'push_websocket_channel': True, 'push_url': 'https://mobile-apps.home-assistant.io/api/sendPush/android/v1', 'push_token': 'cHOGd_PkQ5uSwb6ona9Rsi:APA91bF-LxaKd9Dv81FFhTigdNJ2aqurWF6FJG7o0lV-yXSykqv2noUV87LnLOqQkYIUy-VbqRsifOFRufbFG6wNv81vsfjSOCio4CniyIg76wX-4TGjgzhyivvc1mQ_exHMMcXy9eQ-'}}
2023-11-28 17:49:04.650 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:49:04.653 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:49:07.850 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:49:43.873 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:49:47.294 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:50:26.386 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_registration: {'app_version': '2023.10.2-full (11484)', 'device_name': 'Marks Pixel', 'manufacturer': 'Google', 'model': 'Pixel 4a', 'os_version': '33', 'app_data': {'push_websocket_channel': True, 'push_url': 'https://mobile-apps.home-assistant.io/api/sendPush/android/v1', 'push_token': 'f1QCTI7F5Sk:APA91bHQWQktd_YIu3JR5WLXbk6F2FgMYZgmYJTwztrL4h-HY5Ib4bloxNoEzY574ViuoRb09TUmR9lITAdQZ-VPEjuJW8Lap01A7jA9BKp20dMxInveTpD7JDJ4XUzEWKhbA1UJmOLh'}}
2023-11-28 17:50:26.553 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:50:26.707 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 24.4, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -3.54, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -0.879212, 'voltage': 4.023}}]
2023-11-28 17:50:27.490 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:50:31.853 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:50:32.019 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_power', 'state': -4.51, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.120301, 'voltage': 4.023}}]
2023-11-28 17:53:35.186 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:53:35.344 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 25.5, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -3.32, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -0.825195, 'voltage': 4.023}}]
2023-11-28 17:53:39.769 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:53:39.888 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'battery_level', 'state': 94, 'type': 'sensor', 'icon': 'mdi:battery-90', 'attributes': {}}]
2023-11-28 17:53:46.089 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:53:46.395 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 25.7, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -2.25, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -0.56366, 'voltage': 3.999}}]
2023-11-28 17:54:33.905 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:54:34.026 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 25.5, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -4.45, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.109925, 'voltage': 4.013}}]
2023-11-28 17:54:44.174 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:54:44.399 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_power', 'state': -4.53, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.128235, 'voltage': 4.013}}, {'unique_id': 'phone_state', 'state': 'offhook', 'type': 'sensor', 'icon': 'mdi:phone-in-talk', 'attributes': {}}]
2023-11-28 17:54:56.899 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-28 17:54:57.193 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_power', 'state': -4.05, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.01471, 'voltage': 3.991}}, {'unique_id': 'phone_state', 'state': 'idle', 'type': 'sensor', 'icon': 'mdi:phone', 'attributes': {}}]
2023-11-28 17:57:18.301 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_registration: {'app_version': '2023.10.2-full (11484)', 'device_name': 'MA Pixel', 'manufacturer': 'Google', 'model': 'Pixel 6', 'os_version': '34', 'app_data': {'push_websocket_channel': True, 'push_url': 'https://mobile-apps.home-assistant.io/api/sendPush/android/v1', 'push_token': 'cHOGd_PkQ5uSwb6ona9Rsi:APA91bF-LxaKd9Dv81FFhTigdNJ2aqurWF6FJG7o0lV-yXSykqv2noUV87LnLOqQkYIUy-VbqRsifOFRufbFG6wNv81vsfjSOCio4CniyIg76wX-4TGjgzhyivvc1mQ_exHMMcXy9eQ-'}}
2023-11-28 17:57:18.320 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:57:18.337 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:57:18.377 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:57:18.426 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'battery_level', 'state': 93, 'type': 'sensor', 'icon': 'mdi:battery-90', 'attributes': {}}]
2023-11-28 17:57:18.475 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'battery_level', 'state': 93, 'type': 'sensor', 'icon': 'mdi:battery-90', 'attributes': {}}]
2023-11-28 17:57:18.516 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:57:24.375 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:58:00.840 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}
2023-11-28 17:58:01.045 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type update_sensor_states: [{'unique_id': 'phone_state', 'state': 'idle', 'type': 'sensor', 'icon': 'mdi:phone', 'attributes': {}}]
2023-11-28 17:58:17.130 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from MA Pixel for type get_config: {}

Companion Log
11-28 17:28:30.103 12086 12086 W mpanion.android: Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
11-28 17:28:30.103 12086 12086 W mpanion.android: Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateList.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
11-28 17:28:30.103 12086 12086 W mpanion.android: Method void androidx.compose.runtime.snapshots.SnapshotStateList.update(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
11-28 17:28:30.147 12086 12086 D AutofillManager: view not autofillable - not passing ime action check
11-28 17:28:30.182 12086 12086 D CompatibilityChangeReporter: Compat change id reported: 247079863; UID 10281; state: DISABLED
11-28 17:28:48.480 12086 12086 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=androidx.activity.OnBackPressedDispatcher$Api33Impl$$ExternalSyntheticLambda0@ff1dd1
11-28 17:28:48.484 12086 12086 D AutofillManager: view not autofillable - not passing ime action check
11-28 17:28:49.398 12086 12086 D IntegrationRepository: setAppActive(): false
11-28 17:28:49.410 12086 12086 D WebviewActivity: Matter commissioning status changed to NOT_STARTED
11-28 17:28:49.413 12086 12086 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.413 12086 12086 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.413 12086 12086 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1701210530398, currentMillis: 1701210529413)
11-28 17:28:49.517 12086 12114 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.517 12086 12143 I WM-Processor: Moving WorkSpec (918bdde7-6a11-4be9-a667-7553f74a34a4) to the foreground
11-28 17:28:49.521 12086 12086 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
11-28 17:28:49.525 12086 12115 D SensorWorker: Updating all Sensors in foreground.
11-28 17:28:49.526 12086 12143 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=422bc59f-6696-4a8b-8186-d9e4194c043e, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
11-28 17:28:49.527 12086 12115 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.527 12086 12086 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.527 12086 12086 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1701210530398, currentMillis: 1701210529527)
11-28 17:28:49.542 12086 12086 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.542 12086 12086 D ServerConnectionInfo: Using cloud / remote UI URL
11-28 17:28:49.542 12086 12086 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.542 12086 12086 D ServerConnectionInfo: Using cloud / remote UI URL
11-28 17:28:49.570 12086 12115 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.571 12086 12115 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.817 12086 12115 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:49.875 12086 12115 I SensorReceiver: Sensor updates and sync completed
11-28 17:28:49.876 12086 12116 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=918bdde7-6a11-4be9-a667-7553f74a34a4, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
11-28 17:28:49.879 12086 12086 I WM-SystemFgDispatcher: Stopping foreground service
11-28 17:28:50.011 12086 12121 D OpenGLRenderer: endAllActiveAnimators on 0xb40000799ee84ba0 (RippleDrawable) with handle 0xb400007adee941c0
11-28 17:28:50.017 12086 12086 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@36f3083
11-28 17:28:55.347 12086 12266 D WebviewActivity: External bus {"type":"config_screen/show","id":12}
11-28 17:28:55.356 12086 12086 D IntegrationRepository: setAppActive(): false
11-28 17:28:55.356 12086 12086 D IntegrationRepository: setAppActive(): false
11-28 17:28:55.359 12086 12086 D SensorReceiver: Received intent: io.homeassistant.companion.android.UPDATE_SENSORS
11-28 17:28:55.360 12086 12115 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:55.375 12086 12086 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1701210530398, currentMillis: 1701210535375)
11-28 17:28:55.382 12086 12115 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:55.382 12086 12115 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:55.403 12086 12115 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
11-28 17:28:55.427 12086 12086 D SettingsWearDetection: API unavailable for discovering nodes (no Wear)
11-28 17:28:55.519 12086 12086 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1701210530398, currentMillis: 1701210535519)
11-28 17:28:55.519 12086 12086 D IntegrationRepository: setAppActive(): true
11-28 17:28:55.547 12086 12115 D SensorReceiver: Nothing to update for server 2 (Home)
11-28 17:28:55.547 12086 12115 I SensorReceiver: Sensor updates and sync completed
11-28 17:29:25.461 12086 12115 D LogcatReader: Read logcat for pid 12086

P.S. Happy anniversary of on the day you joined the forum. And thanks for all your help & support!

1 Like

did you make sure to grant the app background access after starting fresh? Your logs do not show the expected intent for when the phone state changes that might be the issue there

https://developer.android.com/reference/android/telephony/TelephonyManager#ACTION_PHONE_STATE_CHANGED

image

I think so…

yea looks like its setup, its possible the app may have crashed as the logs from teh companion app do not cover the gap

I can consistently reproduce the issue but I don’t know how to detect if the app crashed. Let me know what else to check.

if you open the app again and it loads from the start instead of where you last left it. Also if the logs dont keep accumulating.

The Pixel 6 was left on overnight as usual. The first entry in the companion log was at 06:48 this morning (the approx. time the phone was starting to be used again). HA Host, Supervisor, and Core logs looked ok.

Did some more testing. The phone does not appear to be crashing - the companion app logs seem to contain only the last ~1.5 hours of activity.

MA Pixel companion app log does show the received intent.

11-30 12:58:49.586  9188  9188 D SensorReceiver: Received intent: android.intent.action.PHONE_STATE
11-30 12:58:49.587  9188  9188 D MediaPlayCtrlsWidget: Broadcast received: 
11-30 12:58:49.587  9188  9188 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_OFF
11-30 12:58:49.587  9188  9188 D MediaPlayCtrlsWidget: AppWidgetId: -1
11-30 12:58:49.587  9188  9188 D SensorReceiver: Received intent: android.intent.action.PHONE_STATE

But the HA mobile app debug log does not show receiving the webhook payload from MA Pixel (only Marks Pixel)

2023-11-30 12:56:25.588 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-30 12:56:25.901 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 27.1, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -5.54, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.451722, 'voltage': 3.818}}, {'unique_id': 'phone_state', 'state': 'offhook', 'type': 'sensor', 'icon': 'mdi:phone-in-talk', 'attributes': {}}]
2023-11-30 12:56:43.517 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type get_config: {}
2023-11-30 12:56:43.789 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from Marks Pixel for type update_sensor_states: [{'unique_id': 'battery_temperature', 'state': 27.2, 'type': 'sensor', 'icon': 'mdi:battery', 'attributes': {}}, {'unique_id': 'battery_power', 'state': -4.81, 'type': 'sensor', 'icon': 'mdi:battery-minus', 'attributes': {'current': -1.256409, 'voltage': 3.828}}, {'unique_id': 'phone_state', 'state': 'idle', 'type': 'sensor', 'icon': 'mdi:phone', 'attributes': {}}]

image

Note: there is a 2 second time stamp discrepancy between the mobile phones and HA server.

Also, MA Pixel is successfully sending the diagnostic info.

image

So, there is data getting from/to the HA server from MA Pixel but the phone state sensor is not being updated real-time.

Well, I’ve tried everything suggested in troubleshooting and I have reached the point where I can have a stable real-time phone_state or low battery use but not both.

Not really, It is still very hit and miss.

Had a similar thing with location from Android too where sometimes HA would just ignore it.

Good Day All,
Was there a resolution to this issue of the phone/HA not communicating? I have this same issue where when the app is open and the main focus, HA sees and responds via an automation correctly. But when the app is closed or not the main focus (open and displayed on the android phone), the automation does not work.