home-assistant-config/automations/office/air_conditioner.yaml

30 lines
680 B
YAML
Raw Normal View History

- alias: Keep office cool
description: ""
id: "7b7450b6-0811-4c44-9581-0461adcf912e"
mode: single
2021-09-25 22:08:41 -04:00
trigger:
- platform: numeric_state
entity_id: sensor.home_office_temperature
above: "24"
2021-09-25 22:08:41 -04:00
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.air_conditioner
- alias: Turn off office AC
description: ""
id: "380dc2cc-c43b-4c69-bc36-6923b956f8be"
2021-09-25 22:08:41 -04:00
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.home_office_temperature
below: "22"
2021-09-25 22:08:41 -04:00
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.air_conditioner