From 4796b28c4ff9cfdebf82121dd91aa988b65dfb0f Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 6 Dec 2020 21:46:37 +0100 Subject: [PATCH] Update humidifier settings --- automations/files/humidity.yaml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) 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