🔹 fold-entity-row - Hide away stuff in entities cards

It will - if indentation is corrected:

type: entities
entities:
  - type: 'custom:fold-entity-row'
    head:
      entity: binary_sensor.iiyama_1_ping_availability_status
      secondary_info: last-changed
      state_color: true
    padding: 0
    open: true
    clickable: true
    entities:
      - entity: sun.sun
        secondary_info: last-changed
      - entity: sun.sun
        secondary_info: last-changed

изображение

These last 3 lines are related to the “head” but have a wrong indentation:

It’s right and your screenshots prove it!

That’s what I thought initially too David. However he is trying to adjust the vertical padding, not horizontal.

Thank you! One small correction, this is a margin , according to Inspector.

One more picture - compare vertical spacing between rows:
изображение

type: entities
entities:
  - entity: sun.sun
    secondary_info: last-changed
  - entity: sun.sun
    secondary_info: last-changed
  - entity: sun.sun
    secondary_info: last-changed
  - entity: sun.sun
    secondary_info: last-changed
  - type: 'custom:fold-entity-row'
    head:
      entity: sun.sun
      secondary_info: last-changed
    padding: 0
    open: true
    clickable: true
    entities:
      - entity: sun.sun
        secondary_info: last-changed
      - entity: sun.sun
        secondary_info: last-changed
      - entity: sun.sun
        secondary_info: last-changed
      - entity: sun.sun
        secondary_info: last-changed
      - entity: sun.sun
        secondary_info: last-changed

I used it to hide hot water and towel rails schedule.

1 Like

can you fold-entity-row some glance info?

image

I want to hide the above glance info

image

type: entities
entities:
  - sun.sun
  - type: 'custom:fold-entity-row'
    head:
      type: section
      label: unfold me
    padding: 5
    open: true
    entities:
      - type: divider
      - sun.sun
      - type: 'custom:hui-element'
        card_type: glance
        entities:
          - entity: sun.sun
          - entity: sun.sun

hui element… cool thanks I’ll give it a try!

that worked thanks!:
image

now additional question regarding the box around the glance icons, I used the following style:

    style: |
      ha-card {
        #box-shadow: none;
        background: none;
        padding-top: 0px;
        padding-bottom: 0px;
        margin: -10px 0px -0px -40px;
        font-size: 12px !important;
      }

and i got the above, I want to reduce the white space around the icon, but cannot seem to do so. I can remove background and put a negative margin such as:

        margin: -30px 0px -20px -40px;

and i get this (note the box shadow is #'d out to show how it overlaps the button which gets blocked):
image

so my question is. instead of move the glance card around and clicking the ability to hide the controller status, can i reduce the white space around the icon within the glance in order to reduce the white space?

I’m using Auto entities to show all lights that are switched on. Would it be possible to show all lights that are switched off using fold entity row down below?

Not clear, where do you want to see fold-entity-row?

I could imagine something like this:
image

The real reason I would like to do this is to use similar function to control my doorlocks. So I see if the are Open, but if I want to open any of the switched off then I can just fold out the hidden entities.

Use an auto-entities card set to filter only the switched off locks around a fold entity-row card.

As shown in the example at the bottom of the fold-entity-row docs.

type: custom:auto-entities
show_empty: true
filter:
  include:
    - domain: lock
      state: "off"
card:
  type: custom:fold-entity-row
  head: lock.all_locks
1 Like

Thank you! It solves my problem.

Now I want to somehow organize 30 of my blinds… What I think this could be to group them and use fold entity row. But then I will be missing the slider for %. Can I combine Fold entity row with slider entity row?

Could you take a look what is wrong in this config?

type: entities
entities:
  - entity: cover.screeny
  - entity: cover.rolety_parter
  - type: 'custom:fold-entity-row'
    head: cover.screeny
    entities:
      - cover.mp_rollershutter_12_1
	  - type: 'custom:slider-entity-row'
		step: 1
		entity: mp_rollershutter_12_1

I would love to get at least one of this versions working, but not sure how to get this working

If I use a group to populate a section, is there a way to rename the group header in the card, without having to rename the ‘name’ value in the group config?

Group Config

bedroom_fan_lights:
  name: Bedroom Fan Lights
  entities:
    - light.bedroom_master_fan_light_1
    - light.bedroom_master_fan_light_2

Card Config

type: entities
title: Bedroom
entities:
  - type: custom:fold-entity-row
    head:
      type: section
      label: Click to Show Lights
    entities:
      - type: divider
      - type: custom:fold-entity-row
        head: group.bedroom_nightstand_lights
        entities:
          - entity: light.a_nightstand
            name: A
          - entity: light.m_nightstand
            name: M
        open: true
      - type: custom:fold-entity-row
        head: group.bedroom_fan_lights
        open: true
        entities:
          - entity: light.bedroom_master_fan_light_1
            name: Light 1
          - entity: light.bedroom_master_fan_light_2
            name: Light 2

Rendered Panel

Why not using a "name" option?

type: entities
entities:
  - type: custom:fold-entity-row
    head:
      entity: group.batteries
      name: new name
    padding: 20
    open: true
    clickable: true
    entities:
      - entity: sun.sun
      - entity: sun.sun
      - entity: sun.sun
      - entity: sun.sun

image

Hi,

After updating Home Assistant a few weeks ago, I noticed my fold-entity-row cards are no longer showing entities on a single line, and are breaking things up on multiple lines.

I verified I have the latest version, that it’s loaded in my resources, have cleared browser caches, etc., with no success. It appears this way regardless of browser (Chrome, Firefox), OS (MacOS, Windows), and mobile device.

Any ideas on how I might fix this? Thank you!

Update the card

Or if you use the custom multiple entity row card, make sure that is up to date.

Thanks. I verified I did have the latest version 20.0.4 from the repo. I completely removed it from HA, the resources, restarted everything, cleared browser caches, and then reinstalled the card. Still the same behavior.

Do you use a standard theme?