mirror of
https://github.com/home-assistant/core.git
synced 2026-09-25 08:51:46 -04:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
.detected_condition_common: &detected_condition_common
|
|
target:
|
|
entity:
|
|
- domain: binary_sensor
|
|
device_class: moisture
|
|
fields:
|
|
behavior: &condition_behavior
|
|
required: true
|
|
default: any
|
|
selector:
|
|
automation_behavior:
|
|
mode: condition
|
|
for: &condition_for
|
|
required: true
|
|
default: 00:00:00
|
|
selector:
|
|
duration:
|
|
|
|
.moisture_threshold_entity: &moisture_threshold_entity
|
|
- domain: input_number
|
|
unit_of_measurement: "%"
|
|
- domain: sensor
|
|
device_class: moisture
|
|
- domain: number
|
|
device_class: moisture
|
|
|
|
.moisture_threshold_number: &moisture_threshold_number
|
|
min: 0
|
|
max: 100
|
|
mode: box
|
|
unit_of_measurement: "%"
|
|
|
|
is_detected: *detected_condition_common
|
|
|
|
is_not_detected: *detected_condition_common
|
|
|
|
is_value:
|
|
target:
|
|
entity:
|
|
- domain: sensor
|
|
device_class: moisture
|
|
fields:
|
|
behavior: *condition_behavior
|
|
for: *condition_for
|
|
threshold:
|
|
required: true
|
|
selector:
|
|
numeric_threshold:
|
|
entity: *moisture_threshold_entity
|
|
mode: is
|
|
number: *moisture_threshold_number
|