SwitchBotAPI Driver for SwitchBot Bot

It is in the SwitchBot app. You have to check the settings for the individual Bot device.

ive been searching for for a while but i cant find it.

Is your Bot showing up in the SwitchBot app (on your mobile device)? I think so, because you mentioned seeing a cloud icon.

From "My Home", open up the specific device. Then hit the gear at the top right. There is an option labeled "Cloud Services" that you need to enable.

got it thank you very much

1 Like

Hi Tom, got the meter plus. Not able to create the child device for it. Here is a log


Awesome -- please see the update here: SwitchBot gets an open API! - #102 by tomw

Hi thanks for this great driver!

Where would I begin troubleshooting if I have a single switchbot curtain that stopped responding in hubitat? My other curtains work fine in hubitat. The unresponsive one works normally in the switchbot app. The unresponsive curtain also seems to update position/level info in hubitat when I control it in the switchbot app. However it doesn't respond to open/close commands in hubitat.

It looks like in the switchbot app when I go into the logs for the switchbot hub mini I'm getting an error. It says the curtain is offline and to reconnect it to the internet. I've turned cloud services off and on to no avail. I'm not sure what changed since the integration was working fine for the past few months.

That is odd behavior. I wonder if you've got an intermittent connection between the SwitchBot curtain device and your SwitchBot hub. They connect to each other over BLE (bluetooth), and the range can be a challenge.

How far apart are they? Have you ever seen it fail in the SwitchBot app? Have you ever seen any other curtains or other devices fail?

I wonder if the range could be affected by a dying battery or something. I don't have a curtain device, so I'm just sort of guessing. But I would just try to poke around and see what other clues you can turn up.

Thanks for the advice!

It was definitely an issue with the switchtbot hub mini. I could get the curtains to work intermittently if I connected it to the other switchbot hub with the working curtains (opposite side of the house). I ended up having to reset the swittchbot hub mini a couple times and eventually resetting my wifi network before things finally started working again.

It was definitely strange that hubitat could still see status changes to the curtains though. I could even control the AC that was linked to the malfunctioning switchbot hub. Just the curtain commands were failing for some reason.

Yeah, that is odd.

The commands are a one-time thing, whereas the attributes are refreshed periodically. So my guess would be that it's just a lot more likely that you'd notice a command failing whereas the attributes might just have updated on the subsequent refresh before you noticed the difference.

Anyway, I'm glad it is working again now. :slight_smile:

1 Like

Hello! I bought my first Switchbot bot (the button pusher) a few days ago, to turn on a Rinnai direct vent heater in an external building. I've noticed using the Switchbot app that occasionally it fails to work on the first try, and I have to press the button in the app a second time (seems either the hub doesn't get the command through the cloud, or the bot doesn't receive the bluetooth command, but I don't know which). The actual mechanical button press works perfectly once the little arm on the bot is activated. When it does work, the app says, 'Bingo!", so I have a confirmation that it worked and I've turned on the heat. Is there any confirmation received by the driver, that lets it know the button was actually pushed? I'd like to just set up a tile for my Hubitat device that I use to activate the Switchbot, rather than use the Switchbot app, but I need to know the heat is actually on. Thanks!

Hi @Madcodger, which Hubitat driver are you using? Just check the device type on the virtual device page to be sure.

Hi @tomw . I haven't installed either driver yet, but was wondering if the one you created had this "acknowledged" feature, before I install it. Thanks!

Sure thing.

My integration reflects the Bot status when it is configured in "switch" mode on the SwitchBot side. The SwitchBot API does not report any status (for either state and/or success) when it is in "button" mode, so that info isn't presented in my integration.

I do not know if @toffehoff's integration for the Bot behaves differently or if they are still supporting it.

If you are interested in trying my integration, let's continue the discussion over here: SwitchBot gets an open API! - #17 by tomw

1 Like

I’ve read a few things about the IR devices. I use Switchbot to control my eufy robot vacuum, and although I have the Switchbot IR device driver installed it doesn’t seem to create it as an IR device, any ideas?

Do your IR commands show up under infraredRemoteList in the State Variables section on the device page of your SwitchBot System virtual device?

If so, please enable logging and then press createChildDevices. What happens?

In fact they do not show under the state variables, does that mean the device type is not supported?

Does the switchbot API report battery levels for curtains? It would be great if I could see them in hubitat and add their tiles to my "batteries" dashboard. Also my curtains are all in paired sets so I'm not sure if that makes things more complicated since there'd be 2 separate battery levels per device in hubitat. I can check the levels in the switchbot app but it'd be so much nicer to have everything in one place in hubitat.

Thank you!

No, unfortunately there does not seem to be battery reporting for any of the SwitchBot devices.

Also, to avoid hijacking this thread, let's continue any further discussion over here: SwitchBot gets an open API! - #17 by tomw

1 Like

Hi Tom,

I have several IR devices. I used your IR driver and createChildDevices for those IR devices accordingly. But I do not see " infraredRemoteList in the State Variables section". It's empty! Should I delete them and re-create Child devices again? How can I get the SwitchBot driver to discover all IR commands for all the IR devices?

Thanks,