Anyone Using Switchbot?

Posted on
Wed Oct 23, 2019 2:10 pm
sdmike offline
Posts: 5
Joined: May 15, 2016

Anyone Using Switchbot?

Curious if anyone has any experience with Switchbot hardware and incorporating it into Indigo.

It looks like it works with Alexa, Google Home, Siri, and IFTTT. They will be releasing an interesting piece of hardware in about 6 months to retrofit existing drapes for remote operation.

https://9to5toys.com/2019/10/22/switchb ... ore-522266

I suppose I could work it through Alexa, though recent events have shown that's not necessarily a permanent solution, at least until there is deeper support for Alexa in Indigo.

Posted on
Wed Oct 23, 2019 2:29 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Anyone Using Switchbot?

sdmike wrote:
I suppose I could work it through Alexa, though recent events have shown that's not necessarily a permanent solution, at least until there is deeper support for Alexa in Indigo.


Note that even with a full Indigo Alexa Skill, this likely isn't going to be possible. Skills for one product don't have direct access to things provided by other skills (even if they are both smart home skills). If they have an API, that would be the best option.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Feb 19, 2021 8:55 am
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: Anyone Using Switchbot?

Anyone who has found ways to integrate this with Indigo? I note that the switchbot hub works with Siri *shortcuts* but not directly with HomeKit, so unless I'm missing a step I don't see how HomeKit Bridge would help here.

I'm super disappointed with every garage door control option out there, and a switch bot would work for me. But I really want it in Indigo too.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Fri Feb 19, 2021 10:59 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Anyone Using Switchbot?

They have the API specification and some code on GitHub: https://github.com/OpenWonderLabs

The basic API is via the cloud service. You could probably get simple automations working in Indigo via the GhostXML plugin or some very simple Python scripts.

For local control (no cloud) they have code that will run on an rPi with a bluetooth dongle.

They also have some home-bridge plugins.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Feb 19, 2021 11:18 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Anyone Using Switchbot?

For example, this code will get the list of devices and print it to the log. You would need to get the token using their mobile app per the API instructions.

Code: Select all
import requests

token_header = {'Authorization': token}
base_url = "http://https://api.switch-bot.com/v1.0"

url = base_url + "/devices"
resp = requests.get(url, headers=token_header)
indigo.server.log(u"get /devices, resp = {}".format(resp.json))
Last edited by FlyingDiver on Fri Feb 19, 2021 12:51 pm, edited 1 time in total.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Feb 19, 2021 12:46 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: Anyone Using Switchbot?

Thanks!

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests