Restore Script last_triggered After Restart

Just found out that script’s last_triggered is not restored after my server crash.

Any suggestions for workaround?

There is a feature request for that:

1 Like

Read about Input Datetime integration first, then-

  1. Create an input_datetime.script_test_last_triggered
  2. When running script.test, use input_datetime.set_datetime as your first service

Additional information can be found below-

1 Like