I have no issue configuring this as part of an automation, for example:
- id: '1581536561851'
alias: Garage Door 1 is Open
description: ''
trigger:
- entity_id: cover.garage_door_1
for: '"00:00:15"'
from: closed
platform: state
to: open
condition: []
action:
- data:
data:
actions:
- action: close_garage_door_1
title: Close Garage Door
message: ''
title: Garage Door 1 is Open
service: notify.mobile_app_XXX_phone
After 15 minutes of the door being in an open state, I get the push message.
What I am having trouble with is doing this within an alert, for example, this is working with SMTP (which my carrier translates to SMS) today:
alert:
garage_door_1:
name: Garage Door 1 is open
entity_id: cover.garage_door_1
state: 'open'
repeat: 15
can_acknowledge: true
skip_first: true
notifiers:
- SMS
notify:
- name: SMS
platform: smtp
sender: !secret smtp_username
recipient:
- !secret sms_XXX
server: smtp.gmail.com
port: 587
encryption: starttls
username: !secret smtp_username
password: !secret smtp_password
How can I configure this so the alert is able to send a push message - any sample “notifier” code you can share?