#why this alert stopped to work
1 messages · Page 1 of 1 (latest)
My question is rather what is execatly mobile_app_stefans_iphone?
Did I miss some important update, that this kind of entities will be abandon?
You need to provide a notify service there
But only the part after the .
So for this to work, the service call notify.mobile_app_stefans_iphone should be available in developer tools > services
nothing happened
I added notuify. and still I dont get notifications
I have my alerts folder, and in my configuration.yam, I put alert: !include_dir_named alerts/
You shouldn't add notify
It was correct as you had it
I was only explaining to what it was referring
This for example works:
service: notify.mobile_app_stefans_iphone
data:
message: The garage door has been open for 10 minutes.
title: Your Garage Door Friend
But I want alert platform not notify
The alert integration uses the notify integration
name: "Warning! Water leak detected in the kitchen!"
done_message: "Popravljeno"
entity_id: binary_sensor.kitchen_water_leak
state: "on"
repeat:
- 1
- 5
- 10
can_acknowledge: true
skip_first: false
notifiers:
mobile_app_stefans_iphone
I even tried to set up the state on for binary_sensor.kitchen_water_leak
but nothing happened
notifiers expects a list, like you had before
https://www.home-assistant.io/integrations/alert
But here it has just one entity in the documentation for example for sms? https://i.imgur.com/8PWiS92.png
I even put it directly into configuration.yaml like:
alert:
water_leak:
name: "Warning! Water leak detected in the kitchen!"
done_message: "Popravljeno"
entity_id: binary_sensor.kitchen_water_leak
state: "on"
repeat:
- 1
- 5
- 10
can_acknowledge: true
skip_first: false
notifiers:
- mobile_app_stefans_iphone
Here's my water leak alert:
description: Send alert on Telegram and PushOver when detecting water leak
trigger:
- platform: state
entity_id:
- binary_sensor.0x00158d000879d2b3_water_leak
from: "off"
to: "on"
condition: []
action:
- service: telegram_bot.send_message
data:
target: -redacted
message: Water Leak detected in the Kitchen!
- service: notify.pushover
data:
message: >
"Alert: Water leak detected in the Kitchen by {{
trigger.to_state.attributes.friendly_name }}!"
title: Water Leak Alert
data:
title: Water Leak Alert
sound: siren
priority: 2
expire: 300
retry: 30
That will work but it will send only one notification. The advantage of the alert integration is that it will keep sending notifications until the reason is resolved, or the alert is dismissed