Trying to do something pretty simple but having a hard time. Itās really a use of fold-entity-row and auto-entities. Iām simply trying to show all of my rooms/groups fold-able but only display switches/lights that are on.
None of these attempts seem to workā¦ would appreciate any hints. It seems logical to break down foldable rooms and only show entities of a specific state. TIA!
card:
show_header_toggle: false
title: TEST Currently On
type: entities
filter:
exclude:
- state: 'off'
include:
- domain: group
options:
open: true
type: 'custom:fold-entity-row'
state: 'on'
show_empty: false
type: 'custom:auto-entities'
Thanks for responding @thomasloven ā the biggest problem is that Iām not able to filter CHILD items. Meaning Iām able to show all of my groups but when I filter for ON state it filters on the group not the children. The goal is to show each group and ONLY child items that are in the ON state. See the below result from my top example and notice that it contains entities that are in the OFF state:
The key may be in the title of this card but should I be using the hui-element card with fold-entity-row when it is used as a row item in an entities card?
This must be asked before, but canāt find it above, nor in the docs:
replacing a regular entities card with automations (and the header_toggle) to fit into an entities card with the fold-entity-row makes me lose the header_toggle.
Can we somehow still make that show up? Donāt have the automations in a group (yet) and like to prevent the extra group, especially for this. Below is what I am using now:
but now I cant see/set the section divider? Which is a pity because using the type: divider row above this, isnt identical to the wider section divider of the fold-entity-row:
First, my best wishes and warm gratitude to the Developer!
Thanks a lot for this card.
Next, my question.
I wonder is it possible to show āVā button on the right from the ānormalā position of the state?
I mean this:
Look, the fold-row has a state located not just under the state from the previous row.
Is it possible to make it like this:
I do understand that my example picture looks not so perfect - the āVā button located TOO CLOSE to the right border. But may be you can propose another solution which is better, I hope.
I like toggles lined up too. Could be the arrow rendered on the left side of the toggle? Or maybe fold/unfold could be achieved by some gesture/double-click?
Not sure it is a good solution.
A length of the stateās string may be different for every entity.
So the horizontal position of this āarrowā will be different, not nice.
I have been thinking about where & how to locate this āarrowā - now I think that the current implementation has more pros than cons. I think now it is quite good.
For scenario when the card renders only toggle buttons, left side of those toggles seems to be sufficient.
Maybe card-mod would help - it would be satisfying for my needs but I donāt know how to achieve (if possible)
I would like all the entities in my card to be at the same hierarchy and equal padding; where I can expand/collapse to make the card smaller/bigger, respectively.
I couldnāt find any examples on lovelace-fold-entity-rowās GitHub page demonstrating this. I tried gluing two cards together by combining a regular card and a fold-entity-row; however, for some reason the fold-entity-row card is not respecting the cardās right padding (see below when the card expands).
Collapsed:
Expanded:
The fold-entity-row card below ignores the cardās right margin. The values are all the way to the right edge of the card:
How can I force the fold-entity-row to display the entity values correctly? Maybe, Iām not doing it right? Below is the code:
Head toggle doesnāt show state color. For al the other entities I can see the state color of the entities, except for the head toggle. Is it possible to also show the state color in the head entity?
Thanks for the tip. If I set padding to zero, it does align the rest of the items to the right-most edge of the card. However, I want to keep the default padding since I want it to match the padding of the rest of my Lovelace cards.
Just getting started with Home Assistant and trying to make a collapsed list for each room but it doesnāt seem to like when I try to add a second collapsed entry can anyone tell me what I would need to change to make this work? If I remove the kitchen settings the Family Room looks right.
not sure what issue you might be experiencing, but using the padding: 0 makes the entities in the fold appear with the exact same left and right padding as the entities above the fold. If you are not seeing that, please report back so we can help.