Fold-entity-row issue

I’ve been trying to have the fold entity next to an “Outside Lights” group switch, but just can’t seem to get it working. #thomasloven has an example pictured on his github but no code.
chrome_BJdUVd39wm chrome_pCTv2vYt84

Include the entity in the head key. This should generate Thomas’ s example you have shown:

entities:
  - type: custom:fold-entity-row
    head:
      entity: light.all_lights
    entities:
      - light.bed_light
      - light.ceiling_lights
      - light.kitchen_lights
1 Like

Thanks, but I tried the following and where the toggle switch would be, just left of the fold, it says “unknown”

type: entities
entities:
  - type: 'custom:fold-entity-row'
    head:
      entity: group.all_lights
    entities:
      - switch.bbq_accent
      - switch.path_lights
      - switch.guest_patio

Maybe you shouldn’t put the fold-card inside an entities-card?

That’s the only place you can use it.

That is not true. It is a card by itself, that doesn’t need anything around it.

Orly?

I just made this card with my entities:

type: entities
entities:
  - type: 'custom:fold-entity-row'
    head:
      entity: group.all_lounge_lights
    entities:
      - light.lifx_lounge_entrance_lamp
      - light.lifx_lounge_front_left
      - light.lifx_lounge_front_right
      - light.lifx_lounge_middle_left
      - light.lifx_lounge_middle_right
      - light.lifx_lounge_rear_left
      - light.lifx_lounge_rear_right

Screenshot_2021-05-27 Administration - Home Assistant

Screenshot_2021-05-27 Administration - Home Assistant(1)

Are you sure your group exists and that you have the correct entity id?

Ha Ha, I can’t believe I’m one of them :grin:.
Apologies…

I’ve been using them bare for quite while without problems. But I don’t use any special features.

Yeah, definitely the group is correct. Here is my code that works perfect without the fold-entity, but has the master group switch.

type: entities
entities:
  - entity: group.patio_lights
    name: Patio Lights
  - entity: switch.pool_patio
  - entity: switch.driveway_path_lights
  - entity: switch.driveway_string_lights
  - entity: switch.fountain_neon
title: Outside Lights
state_color: true

I pasted tom_l’s code and modified it with my devices

type: entities
entities:
  - type: 'custom:fold-entity-row'
    head:
      entity: group.all_lights
    entities:
      - switch.bbq_accent
      - switch.guest_patio

But here’s how it looks:ScreenHunter_01 May. 27 07.58

Can you show your group configuration for group.all_lights?

Try this to prove it is a problem with that entity:

type: entities
entities:
  - type: 'custom:fold-entity-row'
    head:
      entity: group.patio_lights
    entities:
      - switch.bbq_accent
      - switch.guest_patio

From groups.yaml

all lights:
  name: all lights
  icon: hass:lightbulb
    - switch.pool_patio
    - switch.driveway_path_lights
    - switch.driveway_string_lights
    - switch.fountain_neon
    - light.pergola_string_lights
    - switch.path_lights
    - switch.bbq_accent
    - switch.upper_lawn
    - switch.guest_patio
    - switch.front_patio
    - switch.shop_patio

This should not have a space in it:

all lights:  ####<--------- Replace the space with an underscore _
  name: all lights
  icon: hass:lightbulb
    - switch.pool_patio
    - switch.driveway_path_lights
...

[/quote]

Rookie mistake, but fixed my group formatting, restarted, & still same issue with “unknown” instead of the toggle. BTW, thanks for the help. This is now:

all_lights:
  name: all lights
  icon: hass:lightbulb
    - switch.pool_patio
    - switch.driveway_path_lights
    - switch.driveway_string_lights
    - switch.fountain_neon
...

It’s still not right.

all_lights:
  name: all lights
  icon: hass:lightbulb
  entities:  ### <------  you are missing this
    - switch.pool_patio
    - switch.driveway_path_lights
    - switch.driveway_string_lights
    - switch.fountain_neon

OMG! I’m such a newb! Thank you sooo much!