diff --git a/source/_components/light.markdown b/source/_components/light.markdown index 27ad3eb65be..c4ec7bce9ec 100644 --- a/source/_components/light.markdown +++ b/source/_components/light.markdown @@ -36,6 +36,27 @@ Most lights do not support all attributes. You can check the platform documentat | `flash` | yes | Tell light to flash, can be either value `short` or `long`. | `effect`| yes | Applies an effect such as `colorloop` or `random`. +

+In order to apply attributes to an entity you will need to add `data:` to the configuration. See example below +

+ +```yaml +# Example configuration.yaml entry +automation: +- id: one + alias: Turn on light when motion is detected + trigger: + - platform: state + entity_id: binary_sensor.motion_1 + to: 'on' + action: + - service: light.turn_on + data: + entity_id: light.living_room + brightness: 255 + kelvin: 2700 +``` + ### {% linkable_title Service `light.turn_off` %} Turns one or multiple lights off.