mirror of
https://github.com/home-assistant/core.git
synced 2026-08-28 02:24:46 -05:00
05eeb6a1bc
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
.condition_common: &condition_common
|
|
target: &condition_light_target
|
|
entity:
|
|
domain: light
|
|
fields:
|
|
behavior: &condition_behavior
|
|
required: true
|
|
default: any
|
|
selector:
|
|
automation_behavior:
|
|
mode: condition
|
|
for: &condition_for
|
|
required: true
|
|
default: 00:00:00
|
|
selector:
|
|
duration:
|
|
|
|
.brightness_threshold_entity: &brightness_threshold_entity
|
|
- domain: input_number
|
|
unit_of_measurement: "%"
|
|
- domain: number
|
|
unit_of_measurement: "%"
|
|
- domain: sensor
|
|
unit_of_measurement: "%"
|
|
|
|
.brightness_threshold_number: &brightness_threshold_number
|
|
min: 0
|
|
max: 100
|
|
mode: box
|
|
unit_of_measurement: "%"
|
|
|
|
is_off: *condition_common
|
|
is_on: *condition_common
|
|
|
|
is_brightness:
|
|
target: *condition_light_target
|
|
fields:
|
|
behavior: *condition_behavior
|
|
for: *condition_for
|
|
threshold:
|
|
required: true
|
|
selector:
|
|
numeric_threshold:
|
|
entity: *brightness_threshold_entity
|
|
mode: is
|
|
number: *brightness_threshold_number
|