adaptive-lighting/custom_components/adaptive_lighting/services.yaml
Michel Peterson f3a3c1cd48 Default lights of the apply service
The apply service is meant to apply the adaptive lighting parameters to a specific set of light(s). This set of lights need to be passed to the service, even though each Adaptive Lighting switch already has this list configured on itself. While having the flexibility to apply to some, it also might be useful to apply to all lights that the switch manages.

This patch makes the lights paramater optional and defaults it to the lights configured on the corresponding configuration entry of the switch being called.
2021-09-22 11:22:10 +03:00

36 lines
1.4 KiB
YAML
Executable file

apply:
description: Applies the current Adaptive Lighting settings to lights.
fields:
entity_id:
description: entity_id of the Adaptive Lighting switch.
example: switch.adaptive_lighting_default
lights:
description: "entity_id(s) of lights, default: lights of the switch"
example: light.bedroom_ceiling
transition:
description: Transition of the lights.
example: 10
adapt_brightness:
description: "Adapt the 'brightness', default: true"
example: true
adapt_color:
description: "Adapt the color_temp/color_rgb, default: true"
example: true
prefer_rgb_color:
description: "Prefer to use color_rgb over color_temp if possible, default: false"
example: false
turn_on_lights:
description: "Turn on the lights that are off, default: false"
example: false
set_manual_control:
description: Mark whether a light is 'manually controlled'.
fields:
entity_id:
description: entity_id of the Adaptive Lighting switch.
example: switch.adaptive_lighting_default
manual_control:
description: "Whether to add ('true') or remove ('false') the light from the 'manual_control' list, default: true"
example: true
lights:
description: entity_id(s) of lights, if not specified, all lights in the switch are selected.
example: light.bedroom_ceiling