Skip to content

Instantly share code, notes, and snippets.

@haberda
Created November 26, 2022 21:38
Show Gist options
  • Save haberda/b509816370af6c421b36dc8049a0a47f to your computer and use it in GitHub Desktop.
Save haberda/b509816370af6c421b36dc8049a0a47f to your computer and use it in GitHub Desktop.
Two scripts to add and remove reminders
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