Having same issue - not working, will try and rollback as per instructions above. Hopefully this gets sorted soon.
Yup they have an API now:
If i wasn’t so rusty on Python I would take a stab at it, time to dig back into it and take a refresher course and maybe give it a shot if i can ever find time
That API is available for at least a year now
The upcoming HA release will cointain fixes for Switchbot issues (according to github commits and HA Core issue tracker).
Still not working for me… The integration finds the device, so the BT connectivity is good, but HA cant control it after…
I’m getting this now:
This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant.
Same here, still no joy… It shows as connected aok on HA - logs:
2022-03-15 11:18:38 WARNING (SyncWorker_33) [switchbot] Bluepy busy, waiting before retry
2022-03-15 11:18:45 WARNING (SyncWorker_33) [switchbot] Bluepy busy, waiting before retry
2022-03-15 11:18:52 WARNING (SyncWorker_33) [switchbot] Bluepy busy, waiting before retry
2022-03-15 11:18:57 WARNING (SyncWorker_33) [switchbot] Error connecting to Switchbot
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 406, in _sendcommand
self._connect(retry, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 294, in _connect
return self._connect(retry - 1, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 294, in _connect
return self._connect(retry - 1, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 294, in _connect
return self._connect(retry - 1, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 271, in _connect
raise bluepy.btle.BTLEDisconnectError(
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral f8:76:33:32:7e:a6
2022-03-15 11:18:57 WARNING (SyncWorker_33) [switchbot] Cannot connect to Switchbot. Retrying (remaining: 3)
2022-03-15 11:19:04 WARNING (SyncWorker_33) [switchbot] Bluepy busy, waiting before retry
2022-03-15 11:19:11 WARNING (SyncWorker_33) [switchbot] Bluepy busy, waiting before retry
2022-03-15 11:19:16 WARNING (SyncWorker_33) [switchbot] Error connecting to Switchbot
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 406, in _sendcommand
self._connect(retry, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 294, in _connect
return self._connect(retry - 1, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 294, in _connect
return self._connect(retry - 1, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 271, in _connect
raise bluepy.btle.BTLEDisconnectError(
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral f8:76:33:32:7e:a6
2022-03-15 11:19:16 WARNING (SyncWorker_33) [switchbot] Cannot connect to Switchbot. Retrying (remaining: 2)
2022-03-15 11:19:23 WARNING (SyncWorker_33) [switchbot] Bluepy busy, waiting before retry
2022-03-15 11:19:28 WARNING (SyncWorker_33) [switchbot] Error connecting to Switchbot
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 406, in _sendcommand
self._connect(retry, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 294, in _connect
return self._connect(retry - 1, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 271, in _connect
raise bluepy.btle.BTLEDisconnectError(
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral f8:76:33:32:7e:a6
2022-03-15 11:19:28 WARNING (SyncWorker_33) [switchbot] Cannot connect to Switchbot. Retrying (remaining: 1)
2022-03-15 11:19:33 WARNING (SyncWorker_33) [switchbot] Error connecting to Switchbot
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 406, in _sendcommand
self._connect(retry, timeout)
File “/usr/local/lib/python3.9/site-packages/switchbot/init.py”, line 271, in _connect
raise bluepy.btle.BTLEDisconnectError(
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral f8:76:33:32:7e:a6
2022-03-15 11:19:33 ERROR (SyncWorker_33) [switchbot] Switchbot communication failed. Stopping trying
NoneType: None
Nice! I’ve been living without switchbot automation for months now, but it would be nice to be able to use it again.
l’ll give rolling back to an earlier version of the integration a shot bow that I’m done with running network cables through my home for the moment
I am running HASSIO on Raspberry pi 4 without any issues since Dec 21. I am on latest and greatest…
I have 3 switchbots… all working fine.
I finally got access to my door contacts and sensor with the project by devWaves: SwitchBot-MQTT-BLE-ESP32 but the biggest issue is I dont have access to my SwitchBot Hub Mini. any one hadd any luck adding this? I want to be able to turn on and off my AC
Update: with the new Bluetooth integration the current Switchbot integration works well.
works really well, very happy. when it will support the smartlock is going to be perfect!
Does anyone know if you can use a press for the bot? or is it still only on or off?
Thanks