From 7bbd68f1c87f4200019bdbce8bb393ac35d64443 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Mon, 27 Jan 2020 07:31:50 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20conditional-row=20to=20Lovela?= =?UTF-8?q?ce=20entities=20card=20(#11706)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ Add conditional-row to Lovelace entities card * 👌 move * * Update entities.markdown --- source/_lovelace/entities.markdown | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/source/_lovelace/entities.markdown b/source/_lovelace/entities.markdown index 194b730aa75..05384a361db 100644 --- a/source/_lovelace/entities.markdown +++ b/source/_lovelace/entities.markdown @@ -230,6 +230,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.* + 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 %}