2.6 KiB
title | description | ha_category | ha_release | ha_iot_class | ha_codeowners | ha_domain | ha_bluetooth | ha_platforms | ha_config_flow | ha_integration_type | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SwitchBot | Instructions on how to set up SwitchBot Devices. |
|
0.78 | Local Push |
|
switchbot | true |
|
true | integration |
The SwitchBot integration allows you to control SwitchBot devices.
Prerequisites
In order to use this integration, it is required to have working Bluetooth set up on the device running Home Assistant. A SwitchBot Hub 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:
- Open the SwitchBot app.
- Open device settings.
- Click on "Device Info".
- 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
- Bot (WoHand)
- Contact Sensor (WoContact)
- Curtain (WoCurtain)
- Meter (WoSensorTH)
- Plug Mini (WoPlug), both the original (model W1901400) and HomeKit-enabled (model W1901401)
SwitchBot Entity
There are three attributes available on the SwitchBot entity to give you more information about your device.
last_run_success
: Iftrue
if the last action sent to the SwitchBot succeeded. This attribute is useful for error trapping when Bluetooth connectivity is intermittent. Iffalse
, see home-assistant.log for specific error messages.Switch mode
: Specifies the mode of the SwitchBot. Iftrue
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.
Error codes and troubleshooting
The SwitchBot integration will automatically discover devices once the Bluetooth integration is enabled and functional.
{% configuration_basic %} "Config flow could not be loaded": description: Possible custom integration conflict, using a different version of PySwitchbot; Try uninstalling the custom integration. "No unconfigured devices found": description: Make sure your devices are powered on and are in range. {% endconfiguration_basic %}