Last active
August 10, 2025 20:29
-
-
Save saippuakauppias/fbe7f2c7e36b58c3da774707f7d88dfc to your computer and use it in GitHub Desktop.
[HA] Мониторинг напряжения - отсутствие/изменение
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias: Мониторинг напряжения - отсутствие/изменение | |
| description: Отправляет уведомления при падении/повышении/отсутствии напряжения на фазах | |
| triggers: | |
| - entity_id: | |
| - sensor.datchik_napriazheniia_1_ext_voltage | |
| - sensor.datchik_napriazheniia_2_ext_voltage | |
| - sensor.datchik_napriazheniia_3_ext_voltage | |
| below: 190 | |
| id: voltage_low | |
| trigger: numeric_state | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 30 | |
| - entity_id: | |
| - sensor.datchik_napriazheniia_1_ext_voltage | |
| - sensor.datchik_napriazheniia_2_ext_voltage | |
| - sensor.datchik_napriazheniia_3_ext_voltage | |
| id: voltage_high | |
| trigger: numeric_state | |
| above: 235 | |
| enabled: true | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 30 | |
| actions: | |
| - data: | |
| title: ⚡ Изменилось напряжение | |
| message: > | |
| Напряжение на фазах: | |
| {% if states('sensor.datchik_napriazheniia_1_ext_voltage')|float < 190 | |
| %}⤵️{% elif states('sensor.datchik_napriazheniia_1_ext_voltage')|float > | |
| 235 %}⤴️{% else %}✅{% endif %} Фаза 1: {{ | |
| states('sensor.datchik_napriazheniia_1_ext_voltage') }}В | |
| {% if states('sensor.datchik_napriazheniia_2_ext_voltage')|float < 190 | |
| %}⤵️{% elif states('sensor.datchik_napriazheniia_2_ext_voltage')|float > | |
| 235 %}⤴️{% else %}✅{% endif %} Фаза 2: {{ | |
| states('sensor.datchik_napriazheniia_2_ext_voltage') }}В | |
| {% if states('sensor.datchik_napriazheniia_3_ext_voltage')|float < 190 | |
| %}⤵️{% elif states('sensor.datchik_napriazheniia_3_ext_voltage')|float > | |
| 235 %}⤴️{% else %}✅{% endif %} Фаза 3: {{ | |
| states('sensor.datchik_napriazheniia_3_ext_voltage') }}В | |
| action: notify.warning | |
| mode: single | |
| max_exceeded: silent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment