Skip to content

Commit

Permalink
Home Assistant group discovery. Koenkk/zigbee2mqtt#2410
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jun 16, 2021
1 parent 8a7cb0e commit af1587a
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions docs/integration/home_assistant.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,28 +126,7 @@ automation:
{% endraw %}

## Groups
Groups are not auto-discovered.
With the configuration below, grouped devices in Zigbee2MQTT will be exposed as a single device in Home Assistant.
The following example will show you how to add a group of lights to Home Assistant.
It has to be added to the Home Assistant `configuration.yaml`.

{% raw %}

```
light:
- platform: mqtt
schema: json
name: MY_GROUP_NAME
command_topic: "zigbee2mqtt/[GROUP_FRIENDLY_NAME]/set"
state_topic: "zigbee2mqtt/[GROUP_FRIENDLY_NAME]"

// Modify according to features supported by all devices in group
brightness: true
color_mode: true
supported_color_modes: ["color_temp", "xy"]
```
{% endraw %}
Groups discovery is supported for groups of lights, switches, locks and covers. For other types you have to manually create a config in the Home Assistant `configuration.yaml`.

## Exposing switch as a light
If your device is currently discovered as a switch and you want to discover it as a light, the following config in the Zigbee2MQTT `configuration.yaml` can be used:
Expand Down

0 comments on commit af1587a

Please sign in to comment.