-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
✨ Add conditional-row to Lovelace entities card #11706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -222,6 +222,42 @@ hide_if_unavailable: | |
| default: false | ||
| {% endconfiguration %} | ||
|
|
||
| ### Conditional | ||
|
|
||
| Special row that displays based on entity states. | ||
|
|
||
| {% configuration %} | ||
| type: | ||
| required: true | ||
| description: conditional | ||
| type: string | ||
| conditions: | ||
| required: true | ||
| description: List of entity IDs and matching states. | ||
| type: list | ||
| keys: | ||
| entity: | ||
| required: true | ||
| description: HA entity ID. | ||
| type: string | ||
| state: | ||
| required: false | ||
| description: Entity state is equal to this value.* | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can't use a ⭐️ to indicate that something is required, Markdown doesn't like that.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, were you referring to @bramkragten suggestion to move the *, as that did indeed break the parser? |
||
| type: string | ||
| state_not: | ||
| required: false | ||
| description: Entity state is unequal to this value.* | ||
| type: string | ||
| row: | ||
| required: true | ||
| description: Row to display if all conditions match. | ||
| type: map | ||
| {% endconfiguration %} | ||
|
|
||
| *one is required (`state` or `state_not`) | ||
|
|
||
| Note: Conditions with more than one entity are treated as an 'and' condition. This means that for the card to show, *all* entities must meet the state requirements set. | ||
|
|
||
| ### Divider | ||
|
|
||
| {% configuration %} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would place the asterisk here