mirror of
https://github.com/home-assistant/core.git
synced 2026-04-17 23:53:49 +01:00
88 lines
2.0 KiB
YAML
88 lines
2.0 KiB
YAML
.condition_common: &condition_common
|
|
target: &condition_climate_target
|
|
entity:
|
|
domain: climate
|
|
fields:
|
|
behavior: &condition_behavior
|
|
required: true
|
|
default: any
|
|
selector:
|
|
select:
|
|
translation_key: condition_behavior
|
|
options:
|
|
- all
|
|
- any
|
|
|
|
.humidity_threshold_entity: &humidity_threshold_entity
|
|
- domain: input_number
|
|
unit_of_measurement: "%"
|
|
- domain: sensor
|
|
device_class: humidity
|
|
- domain: number
|
|
device_class: humidity
|
|
|
|
.humidity_threshold_number: &humidity_threshold_number
|
|
min: 0
|
|
max: 100
|
|
mode: box
|
|
unit_of_measurement: "%"
|
|
|
|
.temperature_units: &temperature_units
|
|
- "°C"
|
|
- "°F"
|
|
|
|
.temperature_threshold_entity: &temperature_threshold_entity
|
|
- domain: input_number
|
|
unit_of_measurement: *temperature_units
|
|
- domain: sensor
|
|
device_class: temperature
|
|
- domain: number
|
|
device_class: temperature
|
|
|
|
is_off: *condition_common
|
|
is_on: *condition_common
|
|
is_cooling: *condition_common
|
|
is_drying: *condition_common
|
|
is_heating: *condition_common
|
|
|
|
is_hvac_mode:
|
|
target: *condition_climate_target
|
|
fields:
|
|
behavior: *condition_behavior
|
|
hvac_mode:
|
|
context:
|
|
filter_target: target
|
|
required: true
|
|
selector:
|
|
state:
|
|
hide_states:
|
|
- unavailable
|
|
- unknown
|
|
multiple: true
|
|
|
|
target_humidity:
|
|
target: *condition_climate_target
|
|
fields:
|
|
behavior: *condition_behavior
|
|
threshold:
|
|
required: true
|
|
selector:
|
|
numeric_threshold:
|
|
entity: *humidity_threshold_entity
|
|
mode: is
|
|
number: *humidity_threshold_number
|
|
|
|
target_temperature:
|
|
target: *condition_climate_target
|
|
fields:
|
|
behavior: *condition_behavior
|
|
threshold:
|
|
required: true
|
|
selector:
|
|
numeric_threshold:
|
|
entity: *temperature_threshold_entity
|
|
mode: is
|
|
number:
|
|
mode: box
|
|
unit_of_measurement: *temperature_units
|