mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update documentation for the light integration (#16781)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
519e318c58
commit
0816d5c88a
@ -13,9 +13,17 @@ This integration allows you to track and control various light bulbs. Read the i
|
|||||||
|
|
||||||
### Default turn-on values
|
### Default turn-on values
|
||||||
|
|
||||||
To set the default color, brightness and transition values when the light is turned on, create a custom `light_profiles.csv` (as described below in the `profile` attribute of `light.turn_on`).
|
To set the default color, brightness and transition values when the light is turned on, create a custom `light_profiles.csv`, normally located in the default configuration folder where you find `configuration.yaml`.
|
||||||
|
|
||||||
The `.default` suffix should be added to the entity identifier of each light to define a default value, e.g., for `light.ceiling_2` the `id` field is `light.ceiling_2.default`. To define a default for all lights, the identifier `group.all_lights.default` can be used. Individual settings always supercede the `all_lights` default setting.
|
The `light_profiles.csv` has to have a header. The format of the header is:
|
||||||
|
|
||||||
|
```txt
|
||||||
|
profile,color_x,color_y,brightness,transition
|
||||||
|
```
|
||||||
|
|
||||||
|
The field transition is optional and can be omitted.
|
||||||
|
|
||||||
|
The `.default` suffix should be added to the entity identifier of each light to define a default value, e.g., for `light.ceiling_2` the `profile` field is `light.ceiling_2.default`. To define a default for all lights, the identifier `group.all_lights.default` can be used. Individual settings always supercede the `all_lights` default setting.
|
||||||
|
|
||||||
### Service `light.turn_on`
|
### Service `light.turn_on`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user