đŸ”č fold-entity-row - Hide away stuff in entities cards

Hi Guys,

please see my code below:

cards:
  - entities:
      - entity: light.master_bedroom_bedside_lamps
        type: 'custom:fold-entity-row'
        icon: 'mdi:lightbulb-outline'
        show_header_toggle: false
        style: |
          .card-header {
          font-size: 20px !important;
          }
        toggle: true
        head:
         #- type: 'custom:slider-entity-row'
        entities:
          - entity: light.window_bedside
            type: 'custom:slider-entity-row'
            toggle: true
          - entity: light.wardrobe_bedside
            type: 'custom:slider-entity-row'
            toggle: true
    type: entities
title: Bedrooms
type: 'custom:vertical-stack-in-card'

I’ve “#” the row that doesn’t seem to work. What I’m trying to do is put the slider in the header as well, but it’s not showing up. tried type without the ‘-’ as well both compile but doesn’t show slider.

You do not need the “-”. But you do need to add another row which specifies the entity for the header row (and you may wish to have the header toggle or not). Maybe you need to create a new entity which is a group or a light group called either group.bedside_lights or light.bedside_lights to use in the header.

James

Hi James,

yes i tired with and without the “-” and both don’t work.

I now added:

          type: 'custom:slider-entity-row'
          entity: light.master_bedroom_bedside_lamps

and they also don’t work. if that’s what you mean by adding an entity type etc.

my light.master_bedroom_bedside_lamps is the group for the two individual lights in the fold down.
so when i toggle on and off for the master bedroom bedside, the lights turn on and off at the last set level. and the only way to dim them is to individually dim each of the entities.
I want to add a slider dimmer for the “light.master_bedroom_bedside_lamps” as well, which works if I add it as a separate card, or an extra entity underneath that folds out, but cannot work when the light.master_bedroom_bedside_lamps is part of the “head”

Yeah. You’ve done what I suggested. Sorry I was unclear.

This set up works for me. Not sure why it’s not working for you. Sorry.

Hi jamesking, do you mind showing me your code so I can cross check?

Cheers.

Hey - sorry for delay.

Here’s my code for the whole view:

@isidrology - it’s lines 33 to 44 that show you what is working for me.

wow
 I don’t get it
 still doesn’t show up
 I did exactly the same before and tried it again now and still nothing
 so I have the following:

  - entities:
      - entities:
          - entity: light.window_bedside_2
            icon: 'mdi:lightbulb-outline'
            name: Window Bedside
            toggle: true
            type: 'custom:slider-entity-row'
          - entity: light.wardrobe_bedside_2
            icon: 'mdi:lightbulb-outline'
            name: Wardrobe Bedside
            toggle: true
            type: 'custom:slider-entity-row'
        entity: group.master_bedroom_bedside_lamps
        group_config:
          secondary_info: last-changed
        head:
          entity: group.master_bedroom_bedside_lamps
          type: 'custom:fold-entity-row'
          toggle: true
        open: true
        show_header_toggle: false
        toggle: true
        type: 'custom:fold-entity-row'
    entity: group.master_bedroom_lights
    group_config:
      secondary_info: last-changed
    head:

      entity: group.master_bedroom_lights
      type: 'custom:fold-entity-row'
      toggle: true

    open: true
    show_header_toggle: false
    toggle: true
    type: 'custom:fold-entity-row'

noticed the two heads now have:

      entity: group.master_bedroom_lights
      type: 'custom:fold-entity-row'
      toggle: true

and still nothing
 this is what shows up now:

Annotation 2020-03-02 092955

You want the heads to have a slider so they should be custom:slider-entity-row

I think he needs help amending his code


@isidrology Does this work?

- entities:
  - entity: light.window_bedside_2
    icon: 'mdi:lightbulb-outline'
    name: Window Bedside
    toggle: true
    type: 'custom:slider-entity-row'
  - entity: light.wardrobe_bedside_2
    icon: 'mdi:lightbulb-outline'
    name: Wardrobe Bedside
    toggle: true
    type: 'custom:slider-entity-row'
head:
  entity: group.master_bedroom_lights
  type: 'custom:slider-entity-row'
  toggle: true

open: true
show_header_toggle: false
toggle: true
type: 'custom:fold-entity-row'

changing fold to slider doesn’t help:

  - entities:
      - entities:
          - entity: light.window_bedside_2
            icon: 'mdi:lightbulb-outline'
            name: Window Bedside
            toggle: true
            type: 'custom:slider-entity-row'
          - entity: light.wardrobe_bedside_2
            icon: 'mdi:lightbulb-outline'
            name: Wardrobe Bedside
            toggle: true
            type: 'custom:slider-entity-row'
        entity: group.master_bedroom_bedside_lamps
        group_config:
          secondary_info: last-changed
        head:
          entity: group.master_bedroom_bedside_lamps
          toggle: true
          type: 'custom:slider-entity-row'
        open: true
        show_header_toggle: false
        toggle: true
        type: 'custom:fold-entity-row'
    entity: group.master_bedroom_lights
    group_config:
      secondary_info: last-changed
    head:
      entity: group.master_bedroom_lights
      toggle: true
      type: 'custom:slider-entity-row'
    open: true
    show_header_toggle: false
    toggle: true
    type: 'custom:fold-entity-row'

Try (just as an experiment) using a (dimmable) light entity in the header rather than a group.

If that works, I’d encourage you to use a light group: https://www.home-assistant.io/integrations/light.group/

Mate, could you explain what you’re going to achieve?
It looks like you put everything in there without understanding what you’re doing.
Namely, do you understand what happens when you use group in head?

Anyway, this might work

type: 'custom:fold-entity-row'
open: true
show_header_toggle: false
toggle: true
head:
  entity: group.master_bedroom_lights
  toggle: true
group_config:
  secondary_info: last-changed
    
entities:
  - type: 'custom:fold-entity-row'
    open: true
    show_header_toggle: false
    toggle: true
    head:
      entity: group.master_bedroom_bedside_lamps
      toggle: true
    group_config:
      secondary_info: last-changed
    entities:
      - type: 'custom:slider-entity-row'
        entity: light.window_bedside_2
        icon: 'mdi:lightbulb-outline'
        name: Window Bedside
        toggle: true
        
      - type: 'custom:slider-entity-row'
        entity: light.wardrobe_bedside_2
        icon: 'mdi:lightbulb-outline'
        name: Wardrobe Bedside
        toggle: true

I tried with my input_number and here is how it looks)
Screen Shot 2020-03-03 at 08.29.45

Possibly you want something like this (sorry, no dimmable lights here)
Screen Shot 2020-03-03 at 08.38.23

I’ve been using this entity extensively for several months now, so first thanks for making it!

Since upgrading from 105 to 106, I’ve a problem with only one of my fold entities. The top one here was working just as is without a change before I upgraded.

entities:
  - type: 'custom:fold-entity-row'
    entities:
      - entity: light.living_room_floor_lamp
        name: Floor Lamp
        type: 'custom:slider-entity-row'
      - entity: light.stairway
        name: Stairway
        type: 'custom:slider-entity-row'
    head:
      entity: group.living_lights
  - entities:
      - entity: light.kitchen_sink
        name: Sink
        type: 'custom:slider-entity-row'
      - entity: light.kitchen_oven_strip
        name: Oven Strip
        type: 'custom:slider-entity-row'
      - entity: light.kitchen_refrigerator_strip
        name: Refrigerator Strip
        type: 'custom:slider-entity-row'
      - entity: light.den_floor_lamp
        type: 'custom:slider-entity-row'
    head:
      entity: light.kitchen
      type: 'custom:slider-entity-row'
    type: 'custom:fold-entity-row'
  - entities:
      - entity: light.bedroom_lamp_leila
        name: Leila lamp
        type: 'custom:slider-entity-row'
      - entity: light.bedroom_lamp_seth
        name: Seth lamp
        type: 'custom:slider-entity-row'
      - entity: light.master_bath
        name: Toilet
        type: 'custom:slider-entity-row'
      - entity: light.master_floor_lamp
        name: Floor Lamp
        type: 'custom:slider-entity-row'
    head: group.bedroom_lights
    type: 'custom:fold-entity-row'
  - entities:
      - entity: light.dining_lights
    head:
      entity: light.dining_lights
      type: 'custom:slider-entity-row'
    name: Dining
    type: 'custom:fold-entity-row'
  - entities:
      - entity: light.office_floor_lamp
        name: Floor Lamp
        type: 'custom:slider-entity-row'
      - entity: light.office_table_lamp
        name: Table Lamp
        type: 'custom:slider-entity-row'
      - entity: light.office_lightstrip
        name: Lightstrip
        type: 'custom:slider-entity-row'
    head: group.office_lights
    type: 'custom:fold-entity-row'
type: entities

Here’s the result of this config

In case you haven’t seen it there are some changes in v106 that affect custom cards (I wouldn’t expect this to affect this custom card, but wanted to check since I am seeing errors).

I did install the latest version of this entity from HACS before posting here, but I also tried updating HACS and have had some issues getting my install back up and running, so I’ll have to check on it again when I get home. I did see this issues still after installing the latest version, but now I’m not super convinced HACS actually installed the latest version, so it’s possible that will fix it.

true that. let me try and see.

So i tried changing from group to lights, still the same issue, the header bars still do not show the sliders.

and “light” is restricted to “light” entities only so I can’t add in “switch” entities

I am quite aware of the change, seeing as I caused it [1, 2, 3].

But you’re right in that that’s what you’re experiencing. Once you get hacs working again, try uninstalling and reinstalling fold-entity-row.

I got HACS working, and have tried uninstalling and reinstalling fold-entity-row and slider-entity-row as well as restarting several times, but I’m still seeing this same problem.

I’m really not sure why this is only a problem for this one group. I have several other groups in this card that have all of the same stuff (groups, lights, slider-entity-rows) that work fine.

after update to v0.107 the type:section doesnt appears and show this error:
Custom element doesn’t exist: hui-section-row.
anyone more?
thanks

I have the same exact problem after updating

image

Working again after latest update
Thanks

1 Like


After update to lastest version 0.107.1
I still have this problem
Please help me
Thanks!