How to Automate Switch Bot

Hi there,

So I’ve setup SwitchBot in my HA (using this tutorial: Integrating SwitchBot with Home Assistant // Detailed Guide - YouTube)
I can see my Switchbots and can control them from the Lovelace Overview.

How can I control my Switchbots from Scripts so that I can call the Scripts (to execute SwitchBot turn off/on) via Automations?

Thanks!

Within a script action you can select Device. You should then be able to find your switchbot bot listed. Once you select the device you should have a list of actions such as turn on and turn off.

Alternatively, you can select Call Service and use the Switch Turn On or Switch Turn Off (or Button Push) service. You can then select your switchbot device using Entity or Device.