Add effect service to WLED integration (#12461)

This commit is contained in:
Franck Nijhof 2020-03-23 21:46:42 +01:00 committed by GitHub
parent 4430149b44
commit 9c5b4534a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,4 +67,20 @@ The integration will create a number of switches:
## Services
This integration currently does not offer any additional services.
Currently, the WLED integration provides one service for controlling effect.
More services for other WLED features are expected to be added in the future.
### Service `wled.effect`
This service allows for controlling the WLED effect.
| Service Data Attribute | Required | Description |
| ---------------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
| `entity_id` | no | A WLED entity ID, or list entity IDs, to apply the effect to. Use `entity_id: all` to target all WLED entities. |
| `effect` | no | Name or ID of the WLED light effect. |
| `intensity` | no | Intensity of the effect. |
| `speed` | no | Speed of the effect. Number between `0` (slow) and `255` (fast). |
| `reverse` | no | Reverse the effect. Either `true` to reverse or `false` otherwise. |
A list of all available effects (and the behavior of the intensity for each
effect) [is documented in the WLED Wiki](https://github.com/Aircoookie/WLED/wiki/List-of-effects-and-palettes#effects).