Hello.
I'm creating a 'prayer reminders' package using YAML. I've created a sensor that gets the time for the current prayer, automatically changing it to the next one when the time for the previous lapses:
template:
- sensor:
# -- Prayer Current Sensor --
- name: "Prayer Next"
unique_id: prayer_current
device_class: timestamp
state: >
...
My goal is to have a notification sent every time the 'prayer_next' datetime == the current datetime, which happens/updates several times a day.
After reading the docs I setup my test automation is setup as follows, but unfortunately it never executes, whether I wait for the time to actually lapse, or if I manually update the sensor value to a future timestamp in Developer Tools. Can anyone confirm what's going wrong here?
# -- Notification Group --
notify:
- platform: group
name: prayer_notifications_group
services:
- action: mobile_app_user_1
- action: mobile_app_user_2
automation:
- alias: "Notify When Prayer Time"
description: "Sends a notification when the time is reached for each prayer."
id: prayer_notify_when_time
triggers:
- trigger: time
at: sensor.prayer_current
actions:
- action: notify.prayer_notifications_group
data:
title: "Prayer Test"
message: "Prayer Reminder Test"