mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 07:46:52 +00:00
Light Service required attributes change
Changed the entries in the table to yes for the optional values like brightness and flash
This commit is contained in:
parent
f687139fe9
commit
c65508dc7e
@ -33,17 +33,17 @@ The light component supports multiple entries in <code>configuration.yaml</code>
|
||||
|
||||
### Service `light.turn_on`
|
||||
|
||||
Turns one or multiple lights on.
|
||||
Turns one light on or multiple lights on using [groups]({{site_root}}/components/group.html).
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| ---------------------- | -------- | ----------- |
|
||||
| `entity_id` | no | Only act on specified lights. Else targets all.
|
||||
| `transition_seconds` | no | Seconds to take to switch to new state.
|
||||
| `profile` | no | Which light profile to use.
|
||||
| `xy_color` | no | Two comma seperated floats that represent the color in XY
|
||||
| `rgb_color` | no | Three comma seperated integers that represent the color in RGB
|
||||
| `brightness` | no | Integer between 0 and 255 for how bright the color should be
|
||||
| `flash` | no | Tell light to flash, can be either value `short` or `long`
|
||||
| `transition_seconds` | yes | Seconds to take to switch to new state.
|
||||
| `profile` | yes | Which light profile to use.
|
||||
| `xy_color` | yes | Two comma seperated floats that represent the color in XY
|
||||
| `rgb_color` | yes | Three comma seperated integers that represent the color in RGB
|
||||
| `brightness` | yes | Integer between 0 and 255 for how bright the color should be
|
||||
| `flash` | yes | Tell light to flash, can be either value `short` or `long`
|
||||
|
||||
### Service `light.turn_off`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user