Switchbot not working - still supported?

Hi, first time poster. Easy on me. :smiley:

Switchbot isn’t working with Hass for me, I’ve never been able to get it to work since I bought the Switchbot system a few months back when I was running (approximately) 0.89.

The Switchbot switches work outside of Hass using either the phone app or Alexa integration.

Raspi 3 running Hass 0.95.4 on HassIO 2.12 with supervisor 167.

I added the below to my switch.yaml, I used the Ethernet MAC in lower case of my SwitchBot hub.

# SwitchBot Hub
- platform: switchbot
  mac: 'ec:fa:bc:xx:xx:xx'
  name: 'SwitchBot Hub'

It creates the switch:

Untitled

But there are errors in my logs when trying to use the switch:

Cannot connect to switchbot.
9:27 AM components/switchbot/switch.py (ERROR)
Failed to connect to Switchbot
9:27 AM /usr/local/lib/python3.7/site-packages/switchbot/__init__.py (WARNING)
2019-06-30 09:27:14 WARNING (SyncWorker_0) [switchbot] Failed to connect to Switchbot
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/switchbot/__init__.py", line 35, in _connect
    bluepy.btle.ADDR_TYPE_RANDOM)
  File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 353, in __init__
    self._connect(deviceAddr, addrType, iface)
  File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 402, in _connect
    "Failed to connect to peripheral %s, addr type: %s" % (addr, addrType))
bluepy.btle.BTLEException: Failed to connect to peripheral ec:fa:bc:2e:89:14, addr type: random
2019-06-30 09:27:14 ERROR (SyncWorker_0) [switchbot] Cannot connect to switchbot.
2

It looks like it’s calling a Bluetooth Python script so I’ve also tried the Bluetooth MAC addresses of the switches themselves with no luck.

Any assistance or guidance is appreciated, thanks in advance.

I’m really wanting to use this to power on the Keurig in the morning, has anyone had luck with Switchbot in Hass.IO? I’m on v.97.0

Anyone have any luck with switchbot?

Switch bot is now working

Do you want to share some knowlegde on how you got it to work?
I’m using a switchbot hub but can’t get any motion in the bot through HA in docker.

I have HassOS in my Raspberry Pi.
SwitchBot HUB is not using.
I just configured my SwitchBot as described in the link below.

OK, so your using bluetooth to connect directly to the switchbot.
Anyone ever got this to work using the hub ?
Because for me it’s pretty useless if you can only use a local bluetooth connection.

Create an IFTTT applet that triggers on Webhooks and actions on Switchbot and creating a command_line switch that executes in CURL to IFTTT in the switch component.
how about it?

example: webhooks event name is “bot_on” & “bot_off”

switch:
  - platform: command_line
    switches:
      switch_bot:
        command_on: curl https://maker.ifttt.com/trigger/bot_on/with/key/your_webhooks_key
        command_off: curl https://maker.ifttt.com/trigger/bot_off/with/key/your_webhooks_key

OK, I will have to look into this, never worked with IFTTT before.
Sure sounds like a viable solution.
Thanks for the info.

I just want to confirm that IFTTT is working with switchbot.
Enabled IFTTT in the swithcbot app and then created an IFTTT app.
Used the API key with the IFTTT app url in HA to create a switch.
Setup was done in about 10 minutes so that’s a success.

Yup.
This solves my problem. My virtual VM doesn’t have bluetooth and I don’t want to get into all that, thanks for the webhook tip.