mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
alias: Master Bedroom Humidifier
|
|
id: automation_master_bedroom_humidifier
|
|
|
|
trigger:
|
|
- platform: numeric_state
|
|
id: low_humidity
|
|
entity_id: sensor.master_bedroom_multisensor_humidity
|
|
below: input_number.master_bedroom_humidifier_on
|
|
|
|
- platform: numeric_state
|
|
id: high_humidity
|
|
entity_id: sensor.master_bedroom_multisensor_humidity
|
|
above: input_number.master_bedroom_humidifier_off
|
|
|
|
action:
|
|
- choose:
|
|
- alias: "Humidity too high via trigger"
|
|
conditions:
|
|
- condition: trigger
|
|
id: high_humidity
|
|
sequence:
|
|
- service: fan.turn_off
|
|
target:
|
|
entity_id: fan.master_bedroom
|
|
|
|
- alias: "Humidity too high via manual run"
|
|
conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.master_bedroom_multisensor_humidity
|
|
above: input_number.master_bedroom_humidifier_off
|
|
sequence:
|
|
- service: fan.turn_off
|
|
target:
|
|
entity_id: fan.master_bedroom
|
|
|
|
- alias: "Humidity too low via trigger"
|
|
conditions:
|
|
- condition: trigger
|
|
id: low_humidity
|
|
sequence:
|
|
|
|
- service: fan.turn_on
|
|
data:
|
|
percentage: 33
|
|
target:
|
|
entity_id: fan.master_bedroom
|
|
|
|
- alias: "Humidity too low via manual run"
|
|
conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.master_bedroom_multisensor_humidity
|
|
below: input_number.master_bedroom_humidifier_on
|
|
sequence:
|
|
|
|
- service: fan.turn_on
|
|
data:
|
|
percentage: 33
|
|
target:
|
|
entity_id: fan.master_bedroom
|