1
0
ansible-home-assistant/automations/files/bedroom-humidifier.yaml

24 lines
567 B
YAML

- id: humidifier_on
alias: '[Bedroom] Turn on humidifier'
trigger:
- platform: numeric_state
entity_id: sensor.ble_humidity_bedroom_sensor
below: '45'
condition: []
action:
- service: switch.turn_on
entity_id: switch.humidifier_plug
mode: single
- id: humidifier_off
alias: '[Bedroom] Turn on humidifier'
trigger:
- platform: numeric_state
entity_id: sensor.ble_humidity_bedroom_sensor
above: '50'
condition: []
action:
- service: switch.turn_off
entity_id: switch.humidifier_plug
mode: single