Added service descriptions which can be used to managed groups. (#22579)

This commit is contained in:
Danny Tsang 2022-05-02 12:29:56 +01:00 committed by GitHub
parent 4c64351c83
commit 2a0815a5a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,3 +293,18 @@ When a group contains entities from domains that have multiple `on` states or on
It is possible to create a group that the system cannot calculate a group state. Groups with entities from unsupported domains will always have an unknown state. It is possible to create a group that the system cannot calculate a group state. Groups with entities from unsupported domains will always have an unknown state.
These groups can still be in templates with the `expand()` directive, called using the `homeassistant.turn_on` and `homeassistant.turn_off` services, etc. These groups can still be in templates with the `expand()` directive, called using the `homeassistant.turn_on` and `homeassistant.turn_off` services, etc.
### Services
This integration provides the following services to modify groups and a service to reload the configuration without restarting Home Assistant itself.
| Service | Data | Description |
| ------- | ---- | ----------- |
| `set` | `Object ID` | Group id and part of entity id.
| | `Name` | Name of the group.
| | `Icon` | Name of the icon for the group.
| | `Entities` | List of all members in the group. Not compatible with **delta**.
| | `Add Entities` | List of members that will change on group listening.
| | `All` | Enable this option if the group should only turn on when all entities are on.
| `remove` | `Object ID` | Group id and part of entity id.
| `reload` | `Object ID` | Group id and part of entity id.