Open Mariusthvdb opened 1 day ago
Hey there @phracturedblue, @tetienne, @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (template
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
template documentation template source (message by IssueLinks)
This is my bad; I shouldn't have updated that particular example in the documentation.
Will fix the docs 👍
../Frenck
ok, so you can confirm that we should be using this now, after changing platform: state
to trigger: state
template:
- trigger:
- trigger: state
-
ok, so you can confirm that we should be using this now, after changing
platform: state
totrigger: state
template: - trigger: - trigger: state -
Templates were not updated to support the word triggers
in it's configuration. The only change was that individual triggers, you replace the word platform
with trigger
.
I.e. Integration agnostic change was
- platform: state
....
to
- trigger: state
...
It does not matter where you put the trigger as long as the field you're putting it in accepts triggers. In your case, you're putting it in the trigger
field for template entities.
The problem
as title, documentation mentions
but the top triggers key throws an error
took it all back to
for now, and config checker seems ok.
What version of Home Assistant Core has the issue?
2024.10.0b0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
template
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/template/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response