Switchbot integration in 2021.10

I’m too having issues since update, they are just not responding.

After updating to 2021.12 the switchbot integration stopped working completely (not responding). Went back to 2021.11.2 and it is working again but same problems as since 2021.10.

I just want to use the old integration but can’t make it work.

odd, mine is back working again. Check if your bluetooth is working. I have an external bluetooth dongle to my pi 3B and I had to re-set the default controller to my external dongle.
ssh to home assistant and use bluetoothctl to check it out

I’m using a PC with a built in bluetooth, running AH on VM. I don’t think it is hardware because it started working again when I went back to 2021.11.2.

It was working fine until 2021.10. After the 2021.10 update (when it stopped showing persistent on/off states and only changed to ‘on’ for few second) it became unreliable and after 2021.12 stopped working at all.

For what it worth, now on 2021.11.2 bluetoothctl gives:

Agent registered
[CHG] Controller A0:C5:89:01:60:8E Pairable: yes

1 Like

That enclosure looks really cool. Well done! Would you mind sharing the .stl?

Update: I managed to use the old switchbot integration (2021.9) with AH 2021.11.2 as per instructions by rkjr. I didn’t need to delete the original core integration. It previously didn’t work for me because I didn’t aad version tag to manifest.json. This link - Integration File Structure | Home Assistant Developer Docs - was helpful. All seem to be working well again. I’ll try to go back to the latest integration in few months, hopefully by then it will be working again.

1 Like

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 :stuck_out_tongue:

1 Like

That API is available for at least a year now :wink:

The upcoming HA release will cointain fixes for Switchbot issues (according to github commits and HA Core issue tracker).

1 Like

Still not working for me… The integration finds the device, so the BT connectivity is good, but HA cant control it after…

1 Like

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.
1 Like

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! :slight_smile:

Does anyone know if you can use a press for the bot? or is it still only on or off?

Thanks