Switchbot "Failed to Connect" at Initial Integration

I’m trying to integrate my newly purchased “switchbot” device. The end goal is to be able to physically turn on/off my Windows 11 PC using HA.

The problem is, when attempting the integration via the UI, there is an error box that says “failed to connect”. I’ve never been able to get any further than that. I read a similar post that looked like it never really got resolved, here.

I don’t know if bluetooth is working on my RPi4, and I don’t even know how to check if it is. I am running the HA OS on the RPi (i.e. not Docker).

Can anyone point me in the right direction?

2 Likes

Got it working.

After reviewing the HA Bluetooth Tracker setup, it is working. Just added 2 lines to the config.yaml, as follows:

# Example configuration.yaml entry
device_tracker:
  - platform: bluetooth_tracker

I have the same issue and cannot seem the find a solution, so I’m glad to see you got your problem solved. Unfortunately I’m not sure how you did it. Could you please clarify a bit? Thanks a lot!

I just copied and pasted these lines of code into my configuration.yaml file, and then restarted home assistant.

device_tracker:
  - platform: bluetooth_tracker

Can you confirm you’ve done this?

Also, just as an aside, I subsequently got the Fingerbot Plus (including the HomeHub) and am a lot more satisfied with it than the switchbot. It’s a little more challenging to setup with HA (need to setup the Tuya Integration), but once you have it going, it’s a lot more powerful. It can control sequences, like long…short…long, which I needed to turn my PC OFF (long press) and back ON (short press). And, it can control depth of the press (51% to 100%).

1 Like

Thanks! I’m a complete noob and kind of have no clue what I’m doing as soon as something doesn’t go as the tutorial :sweat_smile:. I’ll look into it this weekend on how that configuration file works and where to find it! Thanks

2 Likes

I added these lines to the bottom of the file, saved it, restarted my raspberry pi, but unfortunately I still cannot add the switchbot integration. Do you maybe have any other suggestions?

1 Like

Unfortunately I don’t. Sorry… I just haven’t used the switchbot since I installed the fingerbot. At some point I’ll probably revisit integrating it for something else, and when I do, I’ll return to this thread.

I assume that it worked after adding this to the configration yaml was just random?

I did this and rebooted my HA server. No change.