metbril
(Robert 🇳🇱🇪🇺)
September 30, 2022, 7:47am
289
I’m trying to find a way to use a template-entity-row inside a multiple-entity row as one of the extra entities:
- type: custom:multiple-entity-row
entity: sensor.washing_machine_last_run_energy
name: Kosten
icon: mdi:currency-eur
show_state: false
entities:
- type: custom:template-entity-row
entity: sensor.washing_machine_daily_energy
name: Vandaag
state: |
{{ ((states('sensor.washing_machine_daily_energy') | float(0)) *
(states('sensor.energy_rate_tarif_2') | float(0))) | round(2) | replace('.',',') }} €
- type: custom:template-entity-row
entity: sensor.washing_machine_last_run_energy
name: Laatste
state: |
{{ ((states('sensor.washing_machine_last_run_energy') | float(0)) *
(states('sensor.energy_rate_tarif_2') | float(0))) | round(2) | replace('.',',') }} €
Unfortunately, the values shows are those from the entity and not the templates states.
Can anyone provide some guidance how to get the templates working?
(I know I can create a templated sensor with the values and show that, but want to avoid that.)
You cannot use template-entity-row
here.
Place the whole multiple-entity-row
inside config-template-card
if you need templated states/names/headers/icons.
1 Like
maxdaniel
(Max Daniel)
October 1, 2022, 10:19am
291
Hi, I know this was 2 years ago but have you found a way to get a actual timer inside multiple entity rows instead of the timers state?
cdk222
(Cdk222)
November 16, 2022, 2:33pm
292
Did you figure out how to do this?
loovanloon
(Ton van Loon)
November 20, 2022, 10:52am
294
How do I get the value of a nested attribute ( in the seconday info section).?
Nested attribute I want to display: setpoint_mode of attribute setpoint_status
Attributes in development tools::
setpoint_status
** setpoint_mode: FollowSchedule **
** target_heat_temperature: 19 **
So far I tried this ( with no result )
attribute: setpoint_status.attributes.setpoint_mode
attribute: setpoint_mode
attribute: setpoint_status.setpoint_mode
type: entities
entities:
- entity: climate.woonkamer
type: custom:multiple-entity-row
name: Woonkamer
secondary_info:
attribute: setpoint_status.attributes.setpoint_mode
entities:
- attribute: current_temperature
name: Huidig
unit: °C
- attribute: temperature
name: Gewenst
unit: °C
Expected outcome: “FollowSchedule”
Actual outcome: “ündefined”
Find my issue about a support of nested attributes on Github.
Please add required comments.
opened 03:19AM - 17 Jul 22 UTC
An entity may have an "object" attribute usually accessed in jinjia templates as… :
```
state_attr("sensor.some_entity","some_object_attr").subattr
```
It would be great to have a possibility to access them like:
```
attribute: some_object_attr:subattr
```
or
```
attribute: some_object_attr.subattr
```
1 Like
ruzickav
(Vladimir)
November 28, 2022, 7:14pm
296
Hello guys. How to change font, size, color,… of marked part? Can’t find it…
card-mod thread → 1st post → link at the bottom → styles for multiple-entity-row
ruzickav
(Vladimir)
November 28, 2022, 8:30pm
298
Thread? Where? This forum? Github…
cikaybe
(Cikaybe)
December 6, 2022, 10:08am
300
Hi,
I’m getting this error. I installed with HACS. Any advice?
Custom element doesn’t exist: multiple-entity-row.
entity: sensor.alarme_baixo_humidity
type: custom:multiple-entity-row
name: One entity
secondary_info: last-changed
entities:
sensor.alarme_baixo_temperature
driz
(driz)
December 31, 2022, 6:18pm
301
i got the same, further info from the console
i tried the .js from releases and master (though i suspect they’re the same as there hasn’t been a commit since the last release, but i didn’t diff the files)
mushka
(Max)
January 1, 2023, 3:49pm
302
Got a quick question for you all, is tap-action broken? I’m trying to add an icon button to the multiple-entity-row card, code:
type: custom:multiple-entity-row
entity: input_text.entity1
entities:
- icon: mdi:watering-can
tap-action:
action: service
service: script.my_script
When I click on the icon I just get a popup with the info of ‘input_text.entity1’. Am I doing something wrong or is there something wrong with the card? I see that it hasn’t been updated in a year, so was there a breaking change introduced? I’m running OS version 2022.12.8.
Edit: typo in “tap-action”, should be “tap_action”
mushka:
tap-action:
Start with fixing this typo.
mushka
(Max)
January 2, 2023, 12:58am
304
Late night coding claims another one 🤦 … Thanks!
kimbo1st
(Kim)
January 17, 2023, 3:39pm
305
I have multiple toggle buttons and when I switch one it switches all of them on or off and I want to operate them separately. Any idea?
kimbo1st
(Kim)
January 17, 2023, 3:48pm
306
Never mind… saw that the main entity was the same
johnbull
(Johan Forsgard)
January 31, 2023, 5:26pm
307
Hi,
I can’t get name: false to work either
This card addon had been brilliant if it worked
Tried without space (shouldn’t work I suppose) and then the whole sub-entity dissapeared:
On your 1st picture you specified nothing for the “name” option.
2nd picture: spaces are obligatory.