I got an error: [homeassistant.config] Invalid config for 'template' at packages/sensors.yaml, line 98: 'triggers' is an invalid option for 'template', check: triggers
However, using trigger in stead of platform seems to work. Accoriding to a conversation in an issue on Githib, this is not updated yet. That’s why I made it a feature request now.
I believe it should work. Likely it is the vs-code / code server extension / add-on that needs an update in the test code.
I suggest trying it, see if the update all runs without error and the code works. If it does, and the message from the extension is wrong, do an issue here OR there are also instructions here if you want to contribute to fix it as well.
No, I don’t code in any of those. I just use a text editor. When I raised the issue it was already answered that this is just not fixed yet. Hense the feature request.
Also to clearify: it is not about automations, it’s about template sensor.
The new syntax with plurals in triggers does not work in trigger based templates yet. That might come later, for now it was missed. Only in automations for now.
This is already in the plans, we don’t really need a FR for it. It was missed last release, I’d expect this to be added within the next few releases with other yaml streamlining.