when adding the SwitchBot integration to Home Assistant I get the error “failed to connect” with no further errors in the logs.
Searching along the internet I found TONS of people having the same problem but no solution whatsoever. So I wonder if this is a general problem and the integration does not work at all.
Does anyone have the integration working on a Raspberry Pi?
I also wonder if there is any bluetooth setup in Home Assistant? I dont find anything about that topic.
I am using a Raspberry Pi 3 with a Raspbee II attached to it and no other bluetooth device connected yet. I am running Home Assistant Operating System (HassOS). I would like to connect the new SwitchBot temperature/humidty sensor. I bought it specifically because I thought I can add it to Home Assistant
There is a 1 year old Github issue that is still not resolved, I dont know if it is the same issue:
I tried with no success. Does it mean you have it working? On a Raspberry Pi?
Is the integration already searching and trying to connect when adding it? I would have expected to add the integration first and then search for devices.
I’ve had the switchbot integration working for a while, but ran into the same issue recently after some HA update (not sure which to be honest). Location of switchbot and Raspi with HA unchanged, so something must have changed there…
I got my first switchbot devices today and couldn’t get the integration to work either.
I found an article how you can use their API if you have a hub. Explaining how to get curtains in there. Which works pretty okay. Using that logic and the API documentation also got the switchbot itself in HA.
Or an article based on that topic
Does mean its now a cloud based integration and not locally. But its at least a work around I guess if you are really stuck with the official integration.
looks like the integration is no longer working with the latest Switchbot firmware 4.6.
People are investigating the issue (Github info). No solution yet.
Update: latest HA core (2022.7.6) has a working solution.
After an update last week, it started in my environment, too. HA is running in a VM (2023.11.3), and I am using ESPHome Bluetooth Proxies to connect to the SwitchBot (4.9 [could have been older when it started, I never used the SwitchBot app before]).
It was running without any issue for around a year and after the update the connection to the bot failed. I tried to remove and re-add the SwitchBot (device and integration) but the integration won’t install because no unconfigured bots are found.
Other devices using the same Bluetooth proxy are working fine.
have you tried to reboot the HA host computer (not HAitself) before adding the switchbot again?
I found that was needed for a few devices to be re-discovered.