Created
November 26, 2022 21:41
-
-
Save haberda/e107c442dee75c58bcd2db322da3a17e to your computer and use it in GitHub Desktop.
Reminder list automation - this adds reminders to an input select so you can use the remove event script
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 - update reminder select | |
description: "" | |
trigger: | |
- platform: event | |
event_type: set_reminder | |
- platform: event | |
event_type: remove_reminder | |
- platform: event | |
event_type: sent_reminder | |
condition: [] | |
action: | |
- delay: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
- variables: | |
reminder_list: "{{ states.reminder | map(attribute='entity_id') |list }}" | |
set_list: >- | |
{% if reminder_list %} {{ reminder_list }} {% else %} No reminders {% | |
endif %} | |
- service: input_select.set_options | |
data: | |
options: "{{ set_list }}" | |
target: | |
entity_id: input_select.reminder_list | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment