home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
5.02k stars 7.31k forks source link

template sensor condition docu discrepancies / Property condition is not allowed #36008

Open simllll opened 6 hours ago

simllll commented 6 hours ago

Feedback

Hi, I just ran into some not clear discrepancies regarding condition(s) in a sensor template.

1.) https://www.home-assistant.io/integrations/template/#trigger-based-template-binary-sensors-buttons-images-numbers-selects-and-sensors it says we can use "condition". It seems to work, but vscode shows me that it's not allowed: image is there some schema definition update missing?

2.) on the release notes of 2024.10 it says they have no plural names. condition -> conditions https://www.home-assistant.io/blog/2024/10/02/release-202410/#improved-yaml-syntax-for-automations But in the documentation it doesn't say so, and it also seems not to work. I get an error from HA when using conditions instead of condition

Thanks for your work Simon

URL

yaml-schema: http://schemas.home-assistant.io/configuration

Version

2024.11.3

Additional information

No response

home-assistant[bot] commented 6 hours ago

Hey there @phracturedblue, @tetienne, @home-assistant/core, mind taking a look at this feedback as it has been labeled with an integration (template) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `template` can trigger bot actions by commenting: - `@home-assistant close` Closes the feedback. - `@home-assistant rename Awesome new title` Renames the feedback. - `@home-assistant reopen` Reopen the feedback. - `@home-assistant unassign template` Removes the current integration label and assignees on the feedback, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.