Sensors are updated in companion app, but are mostly "Unknown" on HAOS

In the app: all wifi sensors are enabled, and they show the correct info. I am looking at the device logs and the location tracking history and my location is being updated.

In the web console (HAOS): I enabled debug logs for “Mobile App”, and I see location updates are being received.

I am running HAOS on a synology NAS 7.2, and I have a Pixel 7 Pro. I have restarted the VM, disabled HACS, followed the troubleshooting steps for location tracking (clear app storage, delete device in HA web console, start phone app). I also have background fine location enabled and battery optimization disabled.

Here’s another screenshot:

I went to the android companion app and removed my server, then re-added it. Here’s the logbook (sensors still showing unavailable.

And here are some of the logs from the HA server. Notice wifi_state is being set to True!

2023-10-17 22:34:32.800 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type register_sensor: {'unique_id': 'wifi_state', 'state': True, 'type': 'binary_sensor', 'icon': 'mdi:wifi', 'attributes': {}, 'name': 'WiFi state', 'entity_category': 'diagnostic', 'disabled': False}
2023-10-17 22:34:32.802 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Re-register for CalebJ Pixel 7 Pro of existing sensor wifi_state
2023-10-17 22:34:32.833 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type update_sensor_states: [{'unique_id': 'wifi_state', 'state': True, 'type': 'binary_sensor', 'icon': 'mdi:wifi', 'attributes': {}}]

Full logs:

2023-10-17 22:34:26.578 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Re-register for CalebJ Pixel 7 Pro of existing sensor wifi_frequency
2023-10-17 22:34:26.620 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type update_sensor_states: [{'unique_id': 'wifi_frequency', 'state': 5785, 'type': 'sensor', 'icon': 'mdi:wifi', 'attributes': {}}]
2023-10-17 22:34:28.469 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:34:29.110 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:34:29.180 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type register_sensor: {'unique_id': 'wifi_link_speed', 'state': 1134, 'type': 'sensor', 'icon': 'mdi:wifi-strength-3', 'attributes': {}, 'name': 'WiFi link speed', 'unit_of_measurement': 'Mbps', 'state_class': 'measurement', 'entity_category': 'diagnostic', 'disabled': False}
2023-10-17 22:34:29.183 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Re-register for CalebJ Pixel 7 Pro of existing sensor wifi_link_speed
2023-10-17 22:34:29.224 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type update_sensor_states: [{'unique_id': 'wifi_link_speed', 'state': 1134, 'type': 'sensor', 'icon': 'mdi:wifi-strength-3', 'attributes': {}}]
2023-10-17 22:34:30.359 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:34:30.939 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:34:31.010 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type register_sensor: {'unique_id': 'wifi_signal_strength', 'state': -43, 'type': 'sensor', 'icon': 'mdi:wifi-strength-3', 'attributes': {}, 'name': 'WiFi signal strength', 'device_class': 'signal_strength', 'unit_of_measurement': 'dBm', 'state_class': 'measurement', 'entity_category': 'diagnostic', 'disabled': False}
2023-10-17 22:34:31.012 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Re-register for CalebJ Pixel 7 Pro of existing sensor wifi_signal_strength
2023-10-17 22:34:31.050 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type update_sensor_states: [{'unique_id': 'wifi_signal_strength', 'state': -43, 'type': 'sensor', 'icon': 'mdi:wifi-strength-3', 'attributes': {}}]
2023-10-17 22:34:32.195 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:34:32.203 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type update_location: {'gps': [40.0185643, -105.0843351], 'gps_accuracy': 92, 'speed': 0, 'altitude': 1572, 'course': 0, 'vertical_accuracy': 21}
2023-10-17 22:34:32.751 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:34:32.800 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type register_sensor: {'unique_id': 'wifi_state', 'state': True, 'type': 'binary_sensor', 'icon': 'mdi:wifi', 'attributes': {}, 'name': 'WiFi state', 'entity_category': 'diagnostic', 'disabled': False}
2023-10-17 22:34:32.802 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Re-register for CalebJ Pixel 7 Pro of existing sensor wifi_state
2023-10-17 22:34:32.833 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type update_sensor_states: [{'unique_id': 'wifi_state', 'state': True, 'type': 'binary_sensor', 'icon': 'mdi:wifi', 'attributes': {}}]
2023-10-17 22:35:00.608 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:35:02.807 INFO (MainThread) [homeassistant.config_entries] Reloading configuration entries because disabled_by changed in entity registry: 81ad7ce755ef572a68b38540e7657b8c
2023-10-17 22:35:02.816 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mobile_app
2023-10-17 22:35:02.817 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.mobile_app
2023-10-17 22:35:02.817 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mobile_app
2023-10-17 22:37:14.845 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:37:18.829 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type get_config: {}
2023-10-17 22:37:18.894 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload from CalebJ Pixel 7 Pro for type update_sensor_states: [{'unique_id': 'wifi_link_speed', 'state': 1020, 'type': 'sensor', 'icon': 'mdi:wifi-strength-3', 'attributes': {}}, {'unique_id': 'wifi_signal_strength', 'state': -47, 'type': 'sensor', 'icon': 'mdi:wifi-strength-3', 'attributes': {}}]

Known issue. Next time either the app, HA core or the state of the sensor changes it’ll update.

Still not working, is it?

what is still not working? see my comment above about when the proper state will be shown :wink:

you are right, I had to activate it in companion app as sensor. sorry! :slight_smile: