Taehwoan
Nov 25, 2017

control with homebridge

24 comments

Not perfect, but woking.

Use "sudo hcitool lescan" to find the address.

gatttool -t random -b XX:XX:XX:XX:XX:XX --char-write-req -a 0x0016 -n 570100

Change XX:XX:XX:XX:XX:XX to your switchbot address.

 

U can use it with Homebridge-script2 plugin

 

{

"accessory": "Script2",

"name": "Press",

"on": "gatttool -t random -b XX:XX:XX:XX:XX:XX --char-write-req -a 0x0016 -n 570100",

"off": "gatttool -t random -b XX:XX:XX:XX:XX:XX --char-write-req -a 0x0016 -n 570100",

"on_value": "true"

}

 

Plz let us know If anyone or any staff know how to make them work as a switch

yourconnery
Nov 28, 2017

Awesome!!!

 

Work as a switch? You mean the light switch mode?

Taehwoan
Nov 28, 2017

yes the light switch mode

Uli
Dec 23, 2017

I use the homebridge plugin for ifttt to control my switchbot with homekit. I created webhook triggers to turn it on and off (light switch mode).

 

To use it with Alexa (Austrian Alexa skill store in German) I trigger a defined phrase with the Alexa applet and combine it with the ifttt switchbot functionality. Im my case I start the fire in my tile stove with the phrase ‚Alexa trigger Kachelofen‘.

 

The picture shows my solution to move the thermostat rotary control to fire on my tile stove.

 

shin6752
Jun 5, 2018

Hi Uli. I would like to connect ifttt to homebridge. Can you see your ifttt plugin?

Uli
Jun 5, 2018

Hi Shin! I installed the Plugin (https://www.npmjs.com/package/homebridge-ifttt) and then added it in the config like in the linked sample on the plugin-page. Then you see your defined buttons in Homekit. It only works from Homebridge to IFTTT (e.g. to use a Homekit button to trigger something ) but not vice versa (from IFTTT to Homekit).

Tyler Pruce
Sep 27, 2018

Yea I’ve had this integrated into Homekit for a while using IFTTT linked to SmartThings and setting a virtual device in HomeKit to action it. I still think it would be a great improvement to ditch IFTTT and have direct Smartthings and/or HomeKit support.

yourconnery
Oct 10, 2018

Hi, thanks for your idea. We are talking with Smartthings (Samsung) for the direct integration. Also Wink, but no response. Homekit is a bit troublesome since it requires MFi certification. Have you tried Homekit/Siri with Homebridge?

shin6752
Oct 10, 2018

@yourconnery Can you support Apple's Shortcut?

yourconnery
Oct 10, 2018

@shin6752 Apple's shortcut and Android's widget is in our to-do list. But shortcut requires sending http request instead of Bluetooth or MQTT command. So it needs some time to modify our app structure.

Load more replies
Taehwoan
Nov 27, 2018

If u want use the bot as a light switch, change 570100 to 570101 for turn on, 570102 for turn off

shin6752
Nov 28, 2018

Hi Taehwoan! Can you send me your config.json sample? Or do you have a homepage that you can refer to? Even if I make it like the above, it does not recognize it in the home kit.

Taehwoan
Nov 28, 2018

@shin6752 Give me your address.

support
Jan 10

Hi there,

 

For those using HomeBridge, try to update your App to the latest, and enjoy newly released Siri shortcut feature!

 

Should you find any problem, use the Feedback feature in our App so we could check on it quickly.

 

Cheers,

Linda

SwitchBot Customer Happiness

shin6752
Jan 11

I tried to find a way to use it but I could not find it. Do you have a guide?

shin6752
Jan 11

I found the "Siri shortcut" feature. I was wondering about using the feature. Is this function only possible when the device is connected via Bluetooth?

support
Jan 11

@shin6752 Working on the guide. Will publish soon.

Load more replies
akr
Jan 31Edited: Jan 31

Hi. I wrote a script which control SwitchBot.

https://github.com/akr4/smarthome/blob/master/switchbot

Note that this uses gatttool.

 

You can use it in config.json, like:

 

"accessories": [ { "accessory": "Script2", "name": "Switchbot1", "on": "/path/to/switchbot XX:XX:XX:XX:XX:XX ON", "off": "/path/to/switchbot XX:XX:XX:XX:XX:XX OFF", "state": "/path/to/switchbot XX:XX:XX:XX:XX:XX", "on_value": "ON" } ]

Phex Goo
May 6

Do you needs the hub to connect switchbot to Homebridge? Tnx for your reply

akr
May 18

@Phex Goo Hi. No, accessing though bluetooth like this way does not require the hub.

Simon de Groot
Jun 14

hi, I would like to implement my switchbot into homebridge. I retrieved the Mac adress from the app and put in my .json file. in homebridge, the switch doesn't to anything. Also when I click your link, I have no clue what to do with your code.

New Posts
  • jt
    11 hours ago

    Hi. Im hoping to buy a SwitchBot hub + and Meter so I can monitor the temperature in my mother's house from my home. As I'm new to this can I ask some questions: Question 1: If I set up the hub and meter in her house can I see the temperature graph from her meter on my iPhone from anywhere? Question 2: Could we see this on 2 iPhones at the same time ( from several miles away) Question 3: Will the SwitchBot hub + work well with the Huawei B315 router? Please let us know each answer
  • Darren Fields
    a day ago

    I am looking at getting a SwitchBot or two for my home, I currently have a SmartThings Hub, do I need to purchase a SwitchBot Hub to remotely control the SwitchBot or can I use my existing SmartThings Hub?
  • Mike Klodginski
    2 days ago

    It would be really great to add an indefinite 'long press' or 'hold down until off' as the last option on the long press timer. That way it would hold the button down until the switch is set to off instead of a timed interval.
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.