From ae4a6d8c83ee3b41d79181b17fda77527a9a6409 Mon Sep 17 00:00:00 2001 From: karliemeads <68717336+karliemeads@users.noreply.github.com> Date: Fri, 30 Apr 2021 18:40:43 -0400 Subject: [PATCH] Update default profile behaviour in light.turn_on (#17513) --- source/_integrations/light.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/_integrations/light.markdown b/source/_integrations/light.markdown index 8ec2add0fc8..84b250981a0 100644 --- a/source/_integrations/light.markdown +++ b/source/_integrations/light.markdown @@ -24,6 +24,12 @@ 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. +
+ +If a light entity is in the `on` state, the default profile brightness and will only be applied if it is called in the service call data attribute `profile`, like any other named profile. The transition attribute will be applied for all `light.turn_on`, `light.toggle` and `light.turn_off` service calls, unless specified otherwise in the service call data. + +
+ ### Service `light.turn_on` Turns one light on or multiple lights on using [groups](/integrations/group/). @@ -88,6 +94,11 @@ automation: brightness: 130 rgb_color: [255,0,0] ``` +
+ +If no data is sent, and a default profile exists, the default profile will be applied. + +
### Service `light.turn_off`