michbaeck / lovelace-fold-entity-row

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fold-entity-row

Make a group from entities in a lovelace entities card - and fold them away when you don't want to see them.

Options

Name Type Default Description
type string Required custom:fold-entity-row
head entity/object Required The entity or row that should be the header
items list none Entites or rows to put in the fold
group_config object none Extra options to put on each item in the list
open boolean false Set to true to have the fold opened by default

type: entities
title: Folding entities
entities:
  - light.bed_light
  - type: custom:fold-entity-row
    head: sensor.yr_symbol
    items:
      - sensor.outside_humidity
      - sensor.outside_temperature
  - light.bed_light
  - type: custom:fold-entity-row
    head:
      type: section
      label: Lights
    group_config:
      secondary_info: last-changed
    items:
      - light.bed_light
      - light.ceiling_lights
      - light.kitchen_lights
  - light.bed_light

fold-entity-row

Groups will populate the fold automatically

If the head is a group, items: will be ignored and the fold will instead be filled with the entities in the group.

type: entities
title: Folding groups
entities:
  - type: custom:fold-entity-row
    head: group.all_lights
  - type: custom:fold-entity-row
    head: group.all_scripts
  - type: custom:fold-entity-row
    head: group.all_automations

folding groups

About


Languages

Language:JavaScript 100.0%