home-assistant.io/source/_components/switchbot.markdown
Piotr Żuralski 6cbcc1acdc fixing ha_category components annotation (#9432)
* fixing ha_category components annotation

Signed-off-by: Piotr Żuralski <piotr.zuralski@gmail.com>

* ✏️ Tweak
2019-05-11 09:46:28 +02:00

41 lines
861 B
Markdown

---
layout: page
title: "Switchbot"
description: "Instructions on how to set up Switchbot switches."
date: 2018-09-03 22:41
sidebar: true
comments: false
sharing: true
footer: true
logo: switchbot.png
ha_category:
- Switch
ha_release: 0.78
ha_iot_class: Local Polling
redirect_from:
- /components/switch.switchbot/
---
The `switchbot` switch platform allows you to control Switchbot [devices](https://www.switch-bot.com/).
## {% linkable_title Manual Configuration %}
To enable it, add the following lines to your `configuration.yaml`:
```yaml
switch:
- platform: switchbot
mac: 'MAC_ADDRESS'
```
{% configuration %}
mac:
description: The device MAC address with lower-case letters.
required: true
type: string
name:
description: The name used to display the switch in the frontend.
required: false
type: string
{% endconfiguration %}