Skip to content

Instantly share code, notes, and snippets.

@haberda
Created November 26, 2022 21:41
Show Gist options
  • Save haberda/e107c442dee75c58bcd2db322da3a17e to your computer and use it in GitHub Desktop.
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
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