Dynamic long-term reminder that is reboot save

I wonder how to tackle this problem:
A task needs to be done earliest one week after it has been done last time, but should not be done earlier. So, a fixed reminder on a certain weekday is not the solution. Also using something like:

  trigger:
    - platform: state
      entity_id:
        - input_boolean.XXX
      to: "off"
      for:
        hours: 168
        minutes: 0
        seconds: 0

wont work, because it does not survive a reboot…
Thanks for any hints how to tackle this!

There may be a couple of things you could look at:

Firstly, timer helpers can survive reboots so, you could set a timer to create the reminder.

Secondly, you could use a local calendar and use an automation to create a calendar event for the reminder. Calendars are persistent.

Try searching for Home Assistant Local Calendars and Home Assistant Timer Helpers.

Thanks for pointing to the timers. This looks like what I was searching for.

1 Like