Since Oct '21 the as_timestamp and other filters have required that defaults are explicitly declared.
When there isn’t a defined next alarm, you are going to get errors because there’s no value to apply your filters to.
These two sources of errors are eliminated in the template trigger example I gave above.