Skip to content

✨ add conditional row#4173

Closed
iantrich wants to merge 8 commits into
home-assistant:devfrom
iantrich:conditional-row
Closed

✨ add conditional row#4173
iantrich wants to merge 8 commits into
home-assistant:devfrom
iantrich:conditional-row

Conversation

@iantrich
Copy link
Copy Markdown
Member

@iantrich iantrich commented Nov 1, 2019

type: entities
icon: 'mdi:home'
title: Kitchen
entities:
  - entity: light.kitchen
  - type: conditional
    conditions:
      - entity: light.kitchen
        state: 'on'
    row:
      entity: script.kitchen_light_effects

Docs: home-assistant/home-assistant.io#11706

Comment thread src/panels/lovelace/special-rows/hui-conditional-row.ts Outdated
Comment thread src/panels/lovelace/special-rows/hui-conditional-row.ts Outdated
@Misiu
Copy link
Copy Markdown
Contributor

Misiu commented Nov 5, 2019

@iantrich if I understand correctly this will allow us to show/hide a row dynamically, like in your example when you turn on the light, the row with effects will show.
Will this work with entities that are not included in the UI? For example, I'd like to show a row when my sensor is above a specific temperature.
Can we add multiple conditions using and and or?

@Misiu
Copy link
Copy Markdown
Contributor

Misiu commented Dec 7, 2019

@iantrich any updates on this? Any plans to merge this?

@iantrich
Copy link
Copy Markdown
Member Author

iantrich commented Dec 8, 2019

I'm in no rush at the moment to clean it up. Taking a bit of a break

@Misiu
Copy link
Copy Markdown
Contributor

Misiu commented Dec 9, 2019

@iantrich sure thing :) take your time.

@iantrich iantrich changed the title add conditional row ✨ add conditional row Dec 16, 2019
@iantrich iantrich changed the title ✨ add conditional row ✨ add conditional row Dec 16, 2019
Comment thread src/panels/lovelace/special-rows/hui-conditional-row.ts Outdated
Comment thread src/panels/lovelace/special-rows/hui-conditional-row.ts Outdated
Comment thread src/panels/lovelace/special-rows/hui-conditional-row.ts Outdated
@iantrich iantrich deleted the conditional-row branch January 23, 2020 03:12
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants