#why this alert stopped to work

1 messages · Page 1 of 1 (latest)

solemn wasp
#

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?

lament cave
#

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

solemn wasp
#

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/

lament cave
#

You shouldn't add notify

#

It was correct as you had it

#

I was only explaining to what it was referring

solemn wasp
#

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

lament cave
#

The alert integration uses the notify integration

solemn wasp
#
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

lament cave
solemn wasp
#

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
lament cave
#

It's not an entity

#

It's a notify service

forest hemlock
#

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
lament cave
#

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

forest hemlock
#

You're right - however in my case, by using pushover I get around that

#

priority: and sound: and retry: give me control