--- title: SwitchBot description: Instructions on how to set up SwitchBot Devices. ha_category: - Binary Sensor - Cover - Light - Lock - Sensor - Switch ha_release: 0.78 ha_iot_class: Local Push ha_codeowners: - '@bdraco' - '@danielhiversen' - '@RenierM26' - '@murtas' - '@Eloston' - '@dsypniewski' ha_domain: switchbot ha_bluetooth: true ha_platforms: - binary_sensor - cover - humidifier - light - lock - sensor - switch ha_config_flow: true ha_integration_type: integration --- The SwitchBot integration allows you to control SwitchBot [devices](https://www.switch-bot.com/). ## Prerequisites In order to use this integration, it is required to have working [Bluetooth](/integrations/bluetooth) set up on the device running Home Assistant. A [SwitchBot Hub](https://switch-bot.com/pages/switchbot-hub-mini) is not required for this integration. If you have multiple devices of the same type, you need to get the BTLE MAC address of your device to tell your devices apart. You can find the address for your device using the following steps: 1. Open the SwitchBot app. 2. Open device settings. 3. Click on "Device Info". 4. Write down the BTLE MAC address of your device. Please note, device names configured in the SwitchBot app are not transferred into Home Assistant. {% include integrations/config_flow.md %} ## Supported Devices - [Color Bulb (WoBulb)](https://switch-bot.com/pages/switchbot-color-bulb) - [Bot (WoHand)](https://switch-bot.com/pages/switchbot-bot) - [Contact Sensor (WoContact)](https://switch-bot.com/pages/switchbot-contact-sensor) - [Curtain (WoCurtain)](https://switch-bot.com/pages/switchbot-curtain) - [Humidifier (WoHumi)](https://eu.switch-bot.com/products/switchbot-smart-humidifier) - Light Strip (WoStrip) - [Meter](https://switch-bot.com/pages/switchbot-meter)/[Meter Plus 70BB](https://switch-bot.com/pages/switchbot-meter-plus) (WoSensorTH) - [Motion Sensor (WoPresence)](https://switch-bot.com/pages/switchbot-motion-sensor) - Plug Mini (WoPlug), both the original (model W1901400) and HomeKit-enabled (model W1901401) - [Lock (WoLock)](https://switch-bot.com/pages/switchbot-lock) - [Blind Tilt (WoBlindTilt)](https://switch-bot.com/pages/switchbot-blind-tilt) ## SwitchBot Entity There are three attributes available on the SwitchBot entity to give you more information about your device. - `last_run_success`: If `true` if the last action sent to the SwitchBot succeeded. This attribute is useful for error trapping when Bluetooth connectivity is intermittent. If `false`, see home-assistant.log for specific error messages. - `Switch mode`: Specifies the mode of the SwitchBot. If `true` the the SwitchBot is in Pull/Retract mode for toggle switches otherwise the bot is in momentary switch mode. ## SwitchBot Options - `Retry count`: How many times to retry sending commands to your SwitchBot devices. ## SwitchBot Lock The integration currently only uses the primary lock state; in dual lock mode, not all things might work properly. A SwitchBot lock can be set up in Home Assistant in two different ways. You can enter the key id and encryption key yourself, or Home Assistant can import them from your SwitchBot account. ### SwitchBot account (recommended) Using this option you can provide your SwitchBot account login credentials and Home Assistant will import the appropriate encryption key from your account. {% configuration_basic %} Username: description: SwitchBot account username Password: description: SwitchBot account password {% endconfiguration_basic %}