SwitchBot gets an open API!

This was something I spotted the other day - https://twitter.com/zackbarettha/status/1540027474821533696?s=21&t=YHGDeaj_6qnmhYwCKh_PBA

SwitchBot has released its first device that works with Home Assistant Locally!

Home Assistant can connect to HomeKit Enabled devices and automatically discover them.

I just set the device up on my wifi via the SwitchBot app and boom it showed up in @home_assistant !

Switchbot integration with Home Assistant is 100% local.
Switchbot hub is not even required. My Switchbot Curtain bots
are taking directly to the RPI3 via BT.

2 Likes

Yes, that local connection is great if you don't mind having to buy and manage the additional controller.

I considered creating a python application to use for local support with HE, but if connecting them to HA and then using HADB works well then it is probably not worth the effort.

1 Like

I am OK to add anything in order to get rid of any clouds.

Yes, this combination (HA + HADB) works great and it is 100% local.

2 Likes

I just pushed v0.9.12 live on GitHub and HPM.

This version has Smart Lock device support.



I also added a new App to take advantage of the webhook functionality for real-time status events.

This version supports webhook events for Meter/MeterPlus, Strip Light, and Smart Lock. I would like to add Contact and Motion types if anyone can help me out with testing those.

If you are an existing user, you'll have to update the package in HPM first, then Modify the package to include the new App. Then install it in the Apps section of Hubitat -- it's a User App called "SwitchBot Events".

FYI @NerdShowAndTell

5 Likes

Everything is working great! The switchbot smart lock is a device I imagined many years ago. IT's perfect for anyone who can't modify the deadbolt mechanism of their door. It's also perfect for renters, etc. Highly recommended.

1 Like

How quickly the world forgot the Lockitron v2, the ill-fated, long delayed, crowdfunded "over the deadbolt" project from 2012 or so. Only locked me out of my apartment a few times. :joy: Hopefully Switchbot figured out how to make this more reliable (and have the batteries last longer than a few weeks,which should be easier without on-device WiFi). I'm not sure if the sticky tape makes me more or less assured than being screwed into a special mounting plate, but I was impressed with their signature product. Hesitant to get more without them being local, but I do appreciate the niche they're filling.

1 Like

This integration wouldn't be a stretch for you. I never would have bought even a single Switchbot device if it weren't for this cool little D1 Mini integration, but I now have 3 of their awesome combination contact, motion, light sensor and button devices. Rock solid and 100% local.

I added Motion Sensor and Contact Sensor support in v0.9.13.

Thanks to @keithwwinters for the testing help and feedback! FYI @jeremyleestewart .


Remember that you need to Upgrade in HPM first, then Modify to add the optional drivers for those devices.

I would definitely recommend using the optional SwitchBot Events app so that you get real-time updates.

An important note -- the Contact Sensor only sends contact events, and the Motion Sensor only sends motion events. You still have to do a full refresh to get the other attributes for those devices.

2 Likes

I've been using their curtain bots and push button switchbots for years. The battery life in both devices is amazing.. So far so good with the lock device.. and not sure what they are using for the stick on tape, but its stuck (did a nice pull test).. and it will take warming it up with a hair dryer probably to get it off..

Pretty big sale on the curtainbot coming up 120 USD on July 11th 5pm to 11pm Pacific time.. Comes with Hub, 2 curtain bots, and two solar chargers for the bots, and what looks like 2 proprietary nfc stickers. I paid this much on what I thought was a huge deal for just 2 curtain bots on eBay just a week ago (doh!!!). At least I could use 2 more.
up.Advanced Curtain Bundle – SwitchBot US

@tomw Question for anybody that knows. Will HE support more than 1 hub? Any chance of getting their nfc to work, might be a simple nfc solution for those of us using your driver.

I'm using 2 SB Hub Mini's (1 for each window fan I'm controlling) -- no issues.

ETA -- each Hub Mini shows up as a child device in the main integration

2 Likes

Do you mean to ask whether my SwitchBot integration for HE will support more than one SwitchBot Hub Mini?

I don't do anything to filter it to one hub, so I assume it would just work. But I haven't tried it since I only have one SwitchBot Hub. (EDIT: @hydro311 confirmed that multiple SwitchBot hubs work fine).

I'm not sure about NFC -- it doesn't show up in any of the API documentation.

1 Like

Same, 4x SB hub minis with 6+ curtain bots, few switchbots, door lock, etc. no issues.

1 Like

Thanks everyone, looks like it's fully steam ahead for lots of curtain bots in my house.

2 Likes

So, I don't go into the Switch-Bot App that often.. But be sure you do. Noticed I had firmware updates for all my curtain bots this last week. Also got a new order of Curtain Bot 2.0's in and looking forward to testing those out. I hope they eventually build in the real-time status updates for all these with the API.

Where did you see the updates? All of my devices just list the firmware version. Does that mean they're already up to date?

2 Likes

IIRC switchbot handles updates extremely weirdly, you have to contact support to request an update, they are not pushed out regularly.

1 Like

The devices that need updated will have a red exclamation point in the upper right corner on the main home screen. They also give you an option to update when you tap into their page. The firmware also can be updated when available from each devices settings page where it shows battery and firmware version.

I have never requested a firmware update but I've received a few for the mini hubs and curtains over the past few months.

attached a screenshot of my original curtain device firmware version.

1 Like

Just got a Switchbot Mini hub and a Switchbot Bot/Button.
installed them both via HPM, added the API to the Switchbot System and added devices to the Mini hub and the Bot/Button.

When I try to create a child device I get this message: createChildDevice() failed: deviceType not supported.

What am I doing wrong?