Skip to content

Instantly share code, notes, and snippets.

@smirnowegor
Created December 12, 2025 04:41
Show Gist options
  • Select an option

  • Save smirnowegor/88d3a502d88418555b7f9f98c906b1fc to your computer and use it in GitHub Desktop.

Select an option

Save smirnowegor/88d3a502d88418555b7f9f98c906b1fc to your computer and use it in GitHub Desktop.
Home Assistant Automation for Neptun - notification to mobile and speaker
alias: Протечка! Уведомление на колонку и телефон
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.main_controller_neptun_ws1_alarm
to:
- "on"
- trigger: state
entity_id:
- binary_sensor.main_controller_neptun_ws2_alarm
to:
- "on"
- trigger: state
entity_id:
- binary_sensor.main_controller_neptun_ws3_alarm
to:
- "on"
conditions: []
actions:
- action: notify.mobile_app_iphone
metadata: {}
data:
title: ВНИМАНИЕ! ПРОТЕЧКА!
message: Протечка произошла в {{ trigger.to_state.name }}
data:
push:
sound:
name: default
critical: 1
volume: 1
ttl: 0
priority: high
- data:
title: ВНИМАНИЕ! ПРОТЕЧКА!
message: Протечка произошла в {{ trigger.to_state.name }}
notification_id: leak_alert_{{ trigger.entity_id | replace('.', '_') }}
action: persistent_notification.create
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- action: tts.speak
metadata: {}
data:
cache: true
media_player_entity_id: media_player.yandex_station_x11h9pa00bszvk
message: Внимание! Внимание! Протечка произошла в {{ trigger.to_state.name }}
target:
entity_id: tts.google_translate_en_com
mode: parallel
max: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment