wallpanel-android: [BUG] Lost connection to wall panel

Description

After some time or specifc actions, I lost connection to wall panel , here is my observations:

  • Camera of Wall Panel dont work anymore, device do not wake up when I’m in front of camera ;
  • MQTT show losing connection from my HA instance, all my sensors become unavailables ;
  • HTPP commands do not work anymore and get timeout ;
  • If I wake up manually the device, HA works well, even if Wall Panel is still “offline” from MQTT / HTTP ;

To restore Wall Panel, I can:

  1. Wake up manually the device ;
  2. Go to the settings of Wall Panel ;
  3. Go back to the webview ;
  4. MQTT / HTTP commands immediatly work then ;

Informations about my configuration:

  • Camera, HTTP, MQTT and sensors are enabled ;
  • Sensor publish frequence is default one (30s) ;
  • Battery optimization has been disabled for Wall Panel app ;
  • Wall panel app is default dashboard of device ;
  • I have the Home Assistant app on the same device which continue to send sensors informations even when Wall Panel is “offline” ;

Steps to reproduce

Bug occure when :

  • Device boot automatically (android function where you set time to automatically switch off / on the device), Wall Panel is active during like 3min and then become offline ;
  • Sometimes, when I send an MQTT message to change camera settings, Wall Panel become unavailable ;

Sometime, there is day with no disconnection, sometimes it’s 2 or 3 times a day. Right now, Wall Panel seems to disconnect every morning after boot since a few day.

Versions

  • Device: Archos 101 Platinum 3G
  • OS: Android 7
  • Application version: v0.10.3

Some logs

Logs form HA, when trying to enable camera and loosing connection from Wall Panel

Maybe something important to note here is my system have sent in the example 3 or 4 MQTT messages to Wall Panel to enable or disable wall panel camera within like 25 seconds.

2022-10-17 19:05:46.837 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on wallpanel/mywallpanel/command: '{"camera":true}', mid: 223
2022-10-17 19:05:47.433 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/mywallpanel/battery/config: b'{"name":"My Wall Panel Battery Level","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/battery","unit_of_measurement":"%","value_template":"{{ value_json.value | float }}","device_class":"battery","unique_id":"wallpanel_mywallpanel_battery","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:05:47.437 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel Battery Level', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'unit_of_measurement': '%', 'value_template': '{{ value_json.value | float }}', 'device_class': 'battery', 'unique_id': 'wallpanel_mywallpanel_battery', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:05:47.438 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor mywallpanel battery, sending update
2022-10-17 19:05:47.439 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/usbPlugged/config: b'{"name":"My Wall Panel USB Plugged","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/battery","payload_on":true,"payload_off":false,"value_template":"{{ value_json.usbPlugged }}","device_class":"power","unique_id":"wallpanel_mywallpanel_usbPlugged","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:05:47.440 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/acPlugged/config: b'{"name":"My Wall Panel AC Plugged","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/battery","payload_on":true,"payload_off":false,"value_template":"{{ value_json.acPlugged }}","device_class":"power","unique_id":"wallpanel_mywallpanel_acPlugged","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:05:47.445 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/charging/config: b'{"name":"My Wall Panel Charging","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/battery","payload_on":true,"payload_off":false,"value_template":"{{ value_json.charging }}","device_class":"battery_charging","unique_id":"wallpanel_mywallpanel_charging","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:05:47.446 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/face/config: b''
2022-10-17 19:05:47.447 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/motion/config: b'{"name":"My Wall Panel Motion Detected","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/motion","payload_on":true,"payload_off":false,"value_template":"{{ value_json.value }}","device_class":"motion","unique_id":"wallpanel_mywallpanel_motion","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:05:47.448 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/tag/mywallpanel/qr/config: b''
2022-10-17 19:05:47.449 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('sensor', 'mywallpanel battery') '{'name': 'My Wall Panel Battery Level', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'unit_of_measurement': '%', 'value_template': '{{ value_json.value | float }}', 'device_class': 'battery', 'unique_id': 'wallpanel_mywallpanel_battery', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}'
2022-10-17 19:05:47.449 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: sensor.my_wall_panel_battery_level
2022-10-17 19:05:47.449 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel USB Plugged', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.usbPlugged }}', 'device_class': 'power', 'unique_id': 'wallpanel_mywallpanel_usbPlugged', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:05:47.450 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor mywallpanel usbPlugged, sending update
2022-10-17 19:05:47.450 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel AC Plugged', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.acPlugged }}', 'device_class': 'power', 'unique_id': 'wallpanel_mywallpanel_acPlugged', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:05:47.450 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor mywallpanel acPlugged, sending update
2022-10-17 19:05:47.450 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel Charging', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.charging }}', 'device_class': 'battery_charging', 'unique_id': 'wallpanel_mywallpanel_charging', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:05:47.451 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor mywallpanel charging, sending update
2022-10-17 19:05:47.451 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {}
2022-10-17 19:05:47.451 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel Motion Detected', 'state_topic': 'wallpanel/mywallpanel/sensor/motion', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.value }}', 'device_class': 'motion', 'unique_id': 'wallpanel_mywallpanel_motion', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:05:47.451 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor mywallpanel motion
2022-10-17 19:05:47.451 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {}
2022-10-17 19:05:47.461 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'mywallpanel battery'): deque([])
2022-10-17 19:05:47.462 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'mywallpanel usbPlugged') '{'name': 'My Wall Panel USB Plugged', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.usbPlugged }}', 'device_class': 'power', 'unique_id': 'wallpanel_mywallpanel_usbPlugged', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}'
2022-10-17 19:05:47.462 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: binary_sensor.my_wall_panel_usb_plugged
2022-10-17 19:05:47.462 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on wallpanel/mywallpanel/state: b'{"currentUrl":"http:\\/\\/192.168.0.15:8123\\/la-maison\\/default_view","screenOn":false,"camera":true,"brightness":133}'
2022-10-17 19:05:47.464 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'mywallpanel acPlugged') '{'name': 'My Wall Panel AC Plugged', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.acPlugged }}', 'device_class': 'power', 'unique_id': 'wallpanel_mywallpanel_acPlugged', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}'
2022-10-17 19:05:47.464 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: binary_sensor.my_wall_panel_ac_plugged
2022-10-17 19:05:47.464 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'mywallpanel charging') '{'name': 'My Wall Panel Charging', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.charging }}', 'device_class': 'battery_charging', 'unique_id': 'wallpanel_mywallpanel_charging', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}'
2022-10-17 19:05:47.464 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: binary_sensor.my_wall_panel_charging
2022-10-17 19:05:47.466 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'mywallpanel usbPlugged'): deque([])
2022-10-17 19:05:47.474 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'mywallpanel acPlugged'): deque([])
2022-10-17 19:05:47.474 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'mywallpanel charging'): deque([])
2022-10-17 19:05:47.476 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.mqtt entity: binary_sensor.my_wall_panel_motion_detected
2022-10-17 19:05:47.487 DEBUG (SyncWorker_3) [homeassistant.components.mqtt.client] Subscribing to wallpanel/mywallpanel/connection, mid: 224
2022-10-17 19:05:47.513 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on wallpanel/mywallpanel/connection (retained): b'online'
2022-10-17 19:05:47.526 DEBUG (SyncWorker_8) [homeassistant.components.mqtt.client] Subscribing to wallpanel/mywallpanel/sensor/motion, mid: 225
2022-10-17 19:05:47.541 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on wallpanel/mywallpanel/sensor/motion: b'{"value":true}'
2022-10-17 19:05:47.551 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'mywallpanel motion'): deque([])
2022-10-17 19:06:07.316 INFO (MainThread) [homeassistant.components.script.desactive_la_camera] Désactive la caméra: Executing step call service
2022-10-17 19:06:07.326 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on wallpanel/mywallpanel/command: '{"camera":false}', mid: 226
2022-10-17 19:06:07.375 INFO (MainThread) [homeassistant.components.script.eteindre_tablette] Eteindre tablette: Running script sequence
2022-10-17 19:06:07.376 INFO (MainThread) [homeassistant.components.script.eteindre_tablette] Eteindre tablette: Executing step call service
2022-10-17 19:06:07.528 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/mywallpanel/battery/config: b'{"name":"My Wall Panel Battery Level","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/battery","unit_of_measurement":"%","value_template":"{{ value_json.value | float }}","device_class":"battery","unique_id":"wallpanel_mywallpanel_battery","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:06:07.538 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel Battery Level', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'unit_of_measurement': '%', 'value_template': '{{ value_json.value | float }}', 'device_class': 'battery', 'unique_id': 'wallpanel_mywallpanel_battery', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:06:07.538 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor mywallpanel battery, sending update
2022-10-17 19:06:07.538 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/usbPlugged/config: b'{"name":"My Wall Panel USB Plugged","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/battery","payload_on":true,"payload_off":false,"value_template":"{{ value_json.usbPlugged }}","device_class":"power","unique_id":"wallpanel_mywallpanel_usbPlugged","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:06:07.539 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/acPlugged/config: b'{"name":"My Wall Panel AC Plugged","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/battery","payload_on":true,"payload_off":false,"value_template":"{{ value_json.acPlugged }}","device_class":"power","unique_id":"wallpanel_mywallpanel_acPlugged","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:06:07.539 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/charging/config: b'{"name":"My Wall Panel Charging","state_topic":"wallpanel\\/mywallpanel\\/sensor\\/battery","payload_on":true,"payload_off":false,"value_template":"{{ value_json.charging }}","device_class":"battery_charging","unique_id":"wallpanel_mywallpanel_charging","device":{"identifiers":"[wallpanel_mywallpanel]","name":"My Wall Panel","manufacturer":"Archos","model":"Archos 101 Platinum 3G"},"availability_topic":"wallpanel\\/mywallpanel\\/connection"}'
2022-10-17 19:06:07.540 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('sensor', 'mywallpanel battery') '{'name': 'My Wall Panel Battery Level', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'unit_of_measurement': '%', 'value_template': '{{ value_json.value | float }}', 'device_class': 'battery', 'unique_id': 'wallpanel_mywallpanel_battery', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}'
2022-10-17 19:06:07.540 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: sensor.my_wall_panel_battery_level
2022-10-17 19:06:07.541 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel USB Plugged', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.usbPlugged }}', 'device_class': 'power', 'unique_id': 'wallpanel_mywallpanel_usbPlugged', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:06:07.541 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor mywallpanel usbPlugged, sending update
2022-10-17 19:06:07.541 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel AC Plugged', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.acPlugged }}', 'device_class': 'power', 'unique_id': 'wallpanel_mywallpanel_acPlugged', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:06:07.542 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor mywallpanel acPlugged, sending update
2022-10-17 19:06:07.542 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'My Wall Panel Charging', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.charging }}', 'device_class': 'battery_charging', 'unique_id': 'wallpanel_mywallpanel_charging', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}
2022-10-17 19:06:07.542 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor mywallpanel charging, sending update
2022-10-17 19:06:07.542 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/face/config: b''
2022-10-17 19:06:07.543 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/mywallpanel/motion/config: b''
2022-10-17 19:06:07.544 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/tag/mywallpanel/qr/config: b''
2022-10-17 19:06:07.544 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on wallpanel/mywallpanel/state: b'{"currentUrl":"http:\\/\\/192.168.0.15:8123\\/la-maison\\/default_view","screenOn":true,"camera":false,"brightness":133}'
2022-10-17 19:06:07.550 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'mywallpanel battery'): deque([])
2022-10-17 19:06:07.551 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'mywallpanel usbPlugged') '{'name': 'My Wall Panel USB Plugged', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.usbPlugged }}', 'device_class': 'power', 'unique_id': 'wallpanel_mywallpanel_usbPlugged', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}'
2022-10-17 19:06:07.551 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: binary_sensor.my_wall_panel_usb_plugged
2022-10-17 19:06:07.552 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'mywallpanel acPlugged') '{'name': 'My Wall Panel AC Plugged', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.acPlugged }}', 'device_class': 'power', 'unique_id': 'wallpanel_mywallpanel_acPlugged', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}'
2022-10-17 19:06:07.552 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: binary_sensor.my_wall_panel_ac_plugged
2022-10-17 19:06:07.552 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'mywallpanel charging') '{'name': 'My Wall Panel Charging', 'state_topic': 'wallpanel/mywallpanel/sensor/battery', 'payload_on': True, 'payload_off': False, 'value_template': '{{ value_json.charging }}', 'device_class': 'battery_charging', 'unique_id': 'wallpanel_mywallpanel_charging', 'device': {'identifiers': '[wallpanel_mywallpanel]', 'name': 'My Wall Panel', 'manufacturer': 'Archos', 'model': 'Archos 101 Platinum 3G'}, 'availability_topic': 'wallpanel/mywallpanel/connection', 'platform': 'mqtt'}'
2022-10-17 19:06:07.552 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: binary_sensor.my_wall_panel_charging
2022-10-17 19:06:07.552 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {}
2022-10-17 19:06:07.553 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {}
2022-10-17 19:06:07.553 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor mywallpanel motion, sending update
2022-10-17 19:06:07.553 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {}
2022-10-17 19:06:07.571 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'mywallpanel usbPlugged'): deque([])
2022-10-17 19:06:07.571 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'mywallpanel acPlugged'): deque([])
2022-10-17 19:06:07.572 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'mywallpanel charging'): deque([])
2022-10-17 19:06:07.572 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'mywallpanel motion') '{}'
2022-10-17 19:06:07.572 INFO (MainThread) [homeassistant.components.mqtt.mixins] Removing component: binary_sensor.my_wall_panel_motion_detected
2022-10-17 19:06:07.581 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'mywallpanel motion'): deque([])
2022-10-17 19:06:07.617 DEBUG (SyncWorker_10) [homeassistant.components.mqtt.client] Unsubscribing from wallpanel/mywallpanel/sensor/motion, mid: 227
[...]
2022-10-17 19:07:53.989 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on wallpanel/mywallpanel/connection: b'offline'

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

Just adding a datapoint here since I was struggling with tablets loosing connections and went down a rabbit hole of trying Fully Kiosk Browser as well as the HA companion app.

Running a wakelock manager with the following settings enabled seems to keep the tablet’s connected (ie preventing Android from throttling wifi / cpu).

I ended up using the following settings in https://github.com/d4rken-org/wakelock-revamp and seem to be able to maintain a solid connection (approx 2% packet loss over and hour of pings).

It would be nice if these wakelock options were incorporated into the app.

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
    <boolean name="core.autostart.call" value="true" />
    <set name="core.locks.saved">
        <string>PARTIAL_WAKE_LOCK</string>
        <string>WIFI_MODE_SCAN_ONLY</string>
        <string>SCREEN_DIM_WAKE_LOCK</string>
        <string>WIFI_MODE_FULL_HIGH_PERF</string>
        <string>WIFI_MODE_FULL</string>
    </set>
    <boolean name="core.paused" value="true" />
    <boolean name="core.autostart.boot" value="true" />
    <boolean name="core.onboarding.show" value="false" />
</map>

Thanks a lot @FredericMa for giving a try to fix this issue and @TheTimeWalker for creating a new version!

I will install the new version right now and will give you my feedbacks after a few days. Hope this fix the issue 👍

I’ve created PR #47 that should handle all MQTT disconnects. Before, only one particular type of disconnects would have been handled. My expectation is that this solves this issue but it doesn’t clarify why the disconnects happen while using the camera.