Created
November 26, 2022 21:38
-
-
Save haberda/b509816370af6c421b36dc8049a0a47f to your computer and use it in GitHub Desktop.
Two scripts to add and remove reminders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Reminder - Add | |
sequence: | |
- variables: | |
fire_time: "{{ states('input_datetime.reminder') }}" | |
message: "{{ states.input_text.reminder.state }}" | |
title: "{{ states(\"input_text.reminder_name\") }}" | |
recipient: "{{ states(\"input_select.reminder_recipient\") }}" | |
name: "{{ states(\"input_text.reminder_name\") }}" | |
- event: set_reminder | |
event_data: | |
title: "{{ title }}" | |
message: "{{ message }}" | |
recipient: "{{ recipient }}" | |
name: "{{ name }}" | |
time: "{{ fire_time }}" | |
mode: single | |
alias: Reminder - Remove | |
sequence: | |
- event: remove_reminder | |
event_data: | |
entity_id: "{{ states('input_select.reminder_list') }}" | |
mode: single | |
icon: mdi:reminder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment