🔹 template-entity-row - Put templates in an entities row

Someone can say me why the state of the custom:template-entity-row does not displayed?

image

entity: input_boolean.heizperiode
name: Heizperiode
icon: mdi:thermostat-box-auto
show_state: false
state_color: true
tap_action:
  action: none
type: custom:multiple-entity-row
entities:
  - entity: automation.advanced_heating_control_wohnzimmer
    name: Automatik
    toggle: true
    styles:
      width: 100px
  - entity: input_boolean.heizperiode
    name: Heizperiode
    toggle: true
  - type: custom:template-entity-row
    entity: sun.sun
    name: tset
    tap_action:
      action: none
    state: |
      {% set scheduler_value = states('input_select.advanced_heating_control_wohnzimmer_scheduler') %}
      {% if is_state("schedule.advanced_heating_control_wohnzimmer_" ~ scheduler_value, "on") %} Comfort {% else %} Minimal {% endif %}

Should not be displayed since used in a wrong place.
It may only be used inside Entities card, not inside multiple-entity-row.

ah okay, thats bad, but thanks

Love this mod and use it alot. But I am not able to get icon color to change when I define active. Any ideas what I am doing wrong? This is card I have in my lovelace:

type: custom:template-entity-row
icon: mdi:speedometer
name: Pump Speed (1-4)
active: '{{ states.number.pump_pgm_01234_sensor.state != ''0'' }}'
state: '{{ states.number.pump_pgm_01234_sensor.state }}'

The item shows up but does not change to active color. I have tried change active line to “active: true” and still it will not change color.

there is a long standing open issue for that… please check the repo and you’ll find some discussion

you can use card_mod though and set colors on the icon, though I admit it is not the same…

1 Like

I wonder, are you using the template-entity-row inside Entities card or as a standalone element?

Normally I use inside of an Entities Card. I also removed this a tried standalone but with same result.