Home Assistant – automatyzacja obsługa hydroforu + powiadomienia głosowe + sms

alias: Hydrofor - automatyczne sterowanie On/Off
description: >-
  Włącza pompę przy 1.6 bar i wyłącza przy 3.2 bar z komunikatami głosowymi i
  SMS.
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.czuj_cis_ip214_cisnienie_bar
    below: 1.6
    id: dolny_prog
  - trigger: numeric_state
    entity_id:
      - sensor.czuj_cis_ip214_cisnienie_bar
    above: 3.2
    id: gorny_prog
conditions:
  - condition: time
    after: '06:00:00'
    before: '21:00:00'
actions:
  - choose:
      - conditions:
          - condition: trigger
            id: dolny_prog
        sequence:
          - action: switch.turn_on
            target:
              entity_id: switch.shelly_ip14_g
            data: {}
          - action: tts.speak
            target:
              entity_id: tts.google_translate_pl_com
            data:
              media_player_entity_id: media_player.vlc_telnet
              cache: true
              message: >-
                Uwaga. Ciśnienie hydrofora spadło do wartości 1,6 bara. Pompa
                została uruchomiona.
          - action: notify.mobile_xxx
            data:
              title: 'Uwaga: Hydrofor'
              message: Ciśnienie spadło do 1,6 bar. Włączono pompę.
      - conditions:
          - condition: trigger
            id: gorny_prog
        sequence:
          - action: switch.turn_off
            target:
              entity_id: switch.shelly_ip14_g
            data: {}
          - action: tts.speak
            target:
              entity_id: tts.google_translate_pl_com
            data:
              media_player_entity_id: media_player.vlc_telnet
              cache: true
              message: >-
                Ciśnienie hydrofora osiągnęło ponad trzy bary. Pompa została
                wyłączona.
          - action: notify.mobile_app_xxx
            data:
              title: 'Hydrofor: Wyłączenie'
              message: Osiągnięto ciśnienie 3.0 bar. Pompa została wyłączona.
mode: single

Zostaw komentarz

Twój adres email nie zostanie opublikowany. Wymagane pola są oznaczone *

Przewijanie do góry