I would like to have multiple secondary info lines below my entity.
- For last changed (already there)
- Power consumption or other from another entity.
Is that possible?
I would like to have multiple secondary info lines below my entity.
Is that possible?
try
Hi @lonebaggie, thank you kindly for your response. I am not sure how to use lovelace-canary for my use case.
What I would like is the following.
I have this now:
- entity: switch.wallswitch01_switch
secondary_info: last-changed
state_color: true
I have a separate entity of the same device with power consumption (and other entities):
I would like to see the watt usage as an extra line below:
Like this or below, etc.
I think that’s the closest.
yes, this it.
Using this decluttering card myself:
card:
type: custom:multiple-entity-row
entity: switch.[[entity]]
state_color: true
toggle: true
secondary_info: last-changed
entities:
- entity: sensor.[[entity]]_actueel
name: Actueel
unit: Watt
- entity: sensor.[[entity]]_totaal
name: Totaal
unit: kWh
sort:
method: name
resulting in:
Hm… it seems that one can only do this when the entire card is a “type: custom:multiple-entity-row”.
I have a card with multiple entities:
show_header_toggle: false
title: card
type: entities
state_color: false
entities:
- entity: cover.1
secondary_info: last-changed
- entity: cover.2
secondary_info: last-changed
- entity: light.1
secondary_info: last-changed
- entity: switch.2
secondary_info: last-changed
state_color: true
- entity: light.2
secondary_info: last-changed
- entity: light.3
- entity: switch.1
type: 'custom:multiple-entity-row'
secondary_info: last-changed
entities:
- sensor.1_watt
- entity: switch.3_switch
type: 'custom:multiple-entity-row'
secondary_info: last-changed
entities:
- sensor.3_watt
I then get:
But when I try to add:
name:
unit:
or
name: false
to get rid of the name “wallswitch-1 - watt” above the watts
Like:
show_header_toggle: false
title: card
type: entities
state_color: false
entities:
- entity: cover.1
secondary_info: last-changed
- entity: cover.2
secondary_info: last-changed
- entity: light.1
secondary_info: last-changed
- entity: switch.2
secondary_info: last-changed
state_color: true
- entity: light.2
secondary_info: last-changed
- entity: light.3
- entity: switch.1
type: 'custom:multiple-entity-row'
secondary_info: last-changed
entities:
- sensor.1_watt
name: false
- entity: switch.3_switch
type: 'custom:multiple-entity-row'
secondary_info: last-changed
entities:
- sensor.3_watt
name: false
It does not work…
EDIT:
It does work after this:
- entity: switch.wallswitch03_switch
state_color: true
toggle: true
type: 'custom:multiple-entity-row'
secondary_info: last-changed
entities:
- entity: sensor.wallswitch03_watt
name: Power
Can you show how you did this?
sure, but what isnt clear? the decluttering template is above, and all you need are entities to fill those.
I have switches and sensors like
switch.espresso_keuken
sensor.espresso_keuken_actueel
sensor.espresso_keuken_totaal
that’s all there is to it really, and the final frontend Lovelace card is:
type: entities
title: Switches multiple ent
show_header_toggle: false
entities:
- type: custom:decluttering-card
template: switches_multiple_entity
variables:
- entity: boiler_bijkeuken
- type: custom:decluttering-card
template: switches_multiple_entity
variables:
- entity: freezer_bijkeuken
- type: custom:decluttering-card
template: switches_multiple_entity
variables:
- entity: wasdroger_bijkeuken
etc
etc
etc
ohhh , I bought there was something special about [[entity]] … haha maybe you can filled in on the flow haha