Can somebody help me please. I need to add an alert on a specific date/time and announce a notification on the speaker:
At 6:30 AM on 22-Sep-2022 <===== how do I do this???
- service: tts.say
data:
entity_id: media_player.693_speaker
message: "Reminder: bring Hydo to Hyundai service for her first maintenance schedule".
Thanks. I think I am not sure how to create the Date/Time Helper but I found a way to trigger the reminder. I created a schedule in Simple Scheduler to call the script that I created to do the tts.say at the date/time I wanted the notification to come on.
Easily done with a Time Trigger and Template Condition. No helpers or custom components required.
alias: example
trigger:
- platform: time
at: '06:30:00'
condition:
- "{{ now().date() | string == '2022-09-22' }}"
action:
- service: tts.say
data:
entity_id: media_player.693_speaker
message: "Reminder: bring Hydo to Hyundai service for her first maintenance schedule".
Or you can create a schedule entity and then the automation is reduced to this:
alias: example
trigger:
- platform: state
entity_id: schedule.car_maintenance
to: 'on'
condition: []
action:
- service: tts.say
data:
entity_id: media_player.693_speaker
message: "Reminder: bring Hydo to Hyundai service for her first maintenance schedule".
Taras, thank you. I tried to create an Automation with the Time trigger but there was no way to enter date in the Condition part of the UI so I opted for the âSimple Schedulerâ, which I have to delete after the schedule because it will recur on the next Thursday(s).
I will try to Yaml code. Is that first section in automations.yaml?
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topicâs title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.