Starchild
Jun 19, 2018

Is there an API for the SwitchBot hub?

10 comments

Hi there,

 

Now that I have three Bots successfully and reliably working with Alexa I'm looking at control from my HomeSeer based home automation installation. I reckon the easiest route would be to use API calls to the SwitchBot hub - are there any plans for this method of control?

support
Jul 5, 2018

You might want to enable IFTTT and have a try on "Webhooks" service as IF for now. We have tried it a few times, and it works well as some kind of "HTTP API" for SwitchBots.

 

We also had plan for a direct HTTP API for SwitchBot Hub, but was delayed for the requirement of rewriting Hub Plus firmware.

Starchild
Jul 30, 2018

Thanks for your reply.

 

I have IFTTT working well with my Switchbots and will take a look at Webhooks when I get a chance. However, it would still be great to have the direct HTTP API for the SwitchBot hub so please do keep working on it!

support
Jul 31, 2018

Thanks for the suggestion. We will look further into the implementation in the future.

 

Glad to know that you have IFTTT working well. Looking forward to hearing from you about your interesting use cases, or the experience with the IFTTT Webhooks.

jnd421
Aug 28, 2018

Please do add API to the hub, it will make it so much more useful!

support
Aug 28, 2018

Could you share a little more info what you plan to do with the Hub if we have an API which can meet any your requirement?

 

Just try to understand your use cases.

jnd421
Aug 28, 2018

@support Gladly. If you could provide a simple restful interface to the hub with commands to turn a certain switchbot on/off and query its status, that would allow me (and many other people with home automation systems) to tie it in with the rest of my automation. I could then use the bots to turn my dishwasher/washer on when the electricity cost is low, automate my coffeemaker, start my robotic vacuum when the home is vacant, turn my dehumidifier on/off based on the humidity rate etc. etc.

support
Aug 30, 2018

@jnd421 Thanks for sharing the details. Since we have IFTTT support, and IFTTT supports WebHook (works like HTTP API for SwitchBots). Would you like to share whether you prefer us to provide another kind of API which IFTTT is not capable of? And any reason from your perspective?

 

We do have some users are using IFTTT in your use cases. But just want to further confirm so we don’t invent wheels twice. ;-)

Load more replies
Starchild
Aug 29, 2018

Just to echo the comments of @jnd421 these are the same type of use cases that I had imagined.

 

The salient point here is that the inputs to the decision making process for home automation are often only locally available to the home automation hub. The automation triggers and the logic is handled by the on-premise home automation server, so what is needed is an easy way for that server to control the SwitchBot hub directly.

 

Hope that helps.

support
Aug 30, 2018

Hi Starchild, thanks for sharing. So my understanding is that you want to place all the home automation decision made in your home automation hub locally (or no Internet connection) instead of online, right?

 

Your HomeSeer system do embrace IFTTT integration: https://homeseer.com/ifttt-integration/. In theory, you could integrate SwitchBots to your HomeSeer in 3 ways for now:

1) SwitchBot Bluetooth API, no Hub required, coding required on your HomeSeer side;

2) SwitchBot - SwitchBot Hub/Hub Plus - IFTTT applets - HomeSeer, no coding required;

3) SwitchBot - SwitchBot Hub/Hub Plus - IFTTT webhook - anything, a little coding work.

 

If any solution above does not meet your requirement, or any other concern stops you from using IFTTT, kindly also share with us.

 

To address your concern that SwitchBot Hub is purely a Hub, we add new features of infrared controlling to the next generation SwitchBot Hub Plus. Find out more info on: www.switch-bot.com/hub-plus.

 

SwitchBot to be your simple switch to a smart home. Don’t hesitate to share with us how to make it simpler for you.

New Posts
logo-01_edited.png
0

About us

SwitchBot is your simple switch to a smart home. With easy set-up, we help you to create a comfortable home with innovative smart home products.

We believe a smart home should be simple and comfortable. With the mission of making your life simpler in the most accessible way, SwitchBot is dedicated to creating and crafting the most innovative smart home products for you.

Social

Subscribe to our email, follow us on social media, so you could get the best smart home product updates as soon as we have one.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
© 2019 By Wonderlabs, Inc.