mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-31 15:26:49 +00:00

* Sets front matter defaults * Removes default front matter from section templates/pages * Removes default front matter from addon pages * Removes default front matter from integration pages * Removes default front matter from posts * Removes default front matter from docs pages * Removes default front matter from other pages * Fixes blog category pages
35 lines
747 B
Markdown
35 lines
747 B
Markdown
---
|
|
title: "Switchbot"
|
|
description: "Instructions on how to set up Switchbot switches."
|
|
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/).
|
|
|
|
## 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 %}
|