Error in describing trigger: can't access property "includes", t is undefined

This is a template trigger? IOs this an automation and a sensor? Not sure what you have going on.

However the trigger format appears to be the deprecated (if a template) or legacy, either way look at the HA Docs and see how it needs to look now.
If this is a template, this thread might help. Deprecation of legacy template entities in 2025.12