diff --git a/automations/files/humidity.yaml b/automations/files/humidity.yaml index dfeceab..341c1a7 100644 --- a/automations/files/humidity.yaml +++ b/automations/files/humidity.yaml @@ -1,17 +1,23 @@ -- id: humidity_notificaiton - alias: Humidity notification +- id: humidifier_on + alias: Turn on humidifier trigger: - platform: numeric_state entity_id: sensor.ble_humidity_bedroom_sensor - below: '40' + below: '45' condition: [] action: - - service: tts.google_translate_say - data: - language: pl - message: Niska wilgotność uzupełnij wodę w nawilżaczu - entity_id: media_player.livingroom_speaker - - service: notify.mobile_app_sm_g965f - data: - message: Niska wilgotność uzupełnij wodę w nawilżaczu + - service: switch.turn_on + entity_id: switch.humidifier_plug + mode: single + +- id: humidifier_off + alias: 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