25 lines
719 B
YAML
25 lines
719 B
YAML
automation:
|
|
|
|
# Automation to turn on drying at 9pm in the master bedroom (if switched on ith the helper)
|
|
- id: master_bedroom_offpeak_dehumidify
|
|
alias: Master Bedroom Off-Peak Dehumidify
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: "21:20:00"
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.master_bedroom_offpeak_dehumidify
|
|
state: "on"
|
|
action:
|
|
- service: climate.set_hvac_mode
|
|
target:
|
|
entity_id: climate.master_bedroom
|
|
data:
|
|
hvac_mode: dry
|
|
- wait_for_trigger:
|
|
- platform: time
|
|
at: "00:00:00"
|
|
- service: climate.turn_off
|
|
target:
|
|
entity_id: climate.master_bedroom |