[APP][Cloud & Pro] SwitchBot (Release 2.0.35, Test 2.0.49)

Thanks! I tried the new code:

  • The ESP32 board does seem to receive status updates now, based on the info in the web interface/device info json output.
  • However, this info is not sent to Homey / Homey does not receive these updates. Only after 30-45 secs Homey receives the final update. I ussume via its own bluetooth antenna.

I sent you a new log with the result of powering on/connecting the ESP32 board + an open and close cycle of the curtain.

EDIT: @Adrian_Rockall I added some additional info:

The prior error message ‘ Invalid response code: 500’ is still reported in the log every minute. It seems this error is being triggered by the BLE hub trying to establish a connection with Homey but fails (I redacted the IP/MAC addresses):

2024-12-09T11:21:23.119Z * ------ Polling BLE Starting ------ * 2024-12-09T11:21:27.168Z * server got: SwitchBot BLE Hub! [MAC BLE Hub] from [IP BLE Hub]:1234 * 2024-12-09T11:21:27.175Z * Registering callback: http://[IP Homey]:80/api/app/com.switchbot/newData/ * 2024-12-09T11:21:27.179Z * callback/add * 2024-12-09T11:21:27.185Z * {"uri":"http://[IP Homey]:80/api/app/com.switchbot/newData/"} * 2024-12-09T11:21:27.188Z * { "host": "[IP BLE Hub]", "path": "/api/v1/callback/add", "method": "POST", "headers": { "contentType": "application/json; charset=utf-8", "Content-Length": 61, "connection": "Close" } } * 2024-12-09T11:21:27.208Z * Post response: { "message": "", "statusCode": 500 } * 2024-12-09T11:21:27.211Z * POST complete * 2024-12-09T11:21:27.216Z !!!!!! Invalid response code: 500: * 2024-12-09T11:21:28.168Z * BLE Finished Discovery * 2024-12-09T11:21:28.189Z * Polling BLE: waiting for devices to update * 2024-12-09T11:21:33.261Z * ------ Polling BLE Finished ------ * 2024-12-09T11:21:33.267Z * Next BLE polling interval = 30000

I hope this gives you some clues. Is there anything else I can try or any additional info I can provide you?