Groups: Icon does not change status

Hello together,
first excuse my bad english :slightly_smiling_face:

I have a Problem with my light groups, displayed in a entitiy card. The switch shows the right status (on / off), but the icon on the left does not change his status.

Can you help me please?!

Regards and have a nive evening!

1|690x297

Have you created a template sensor and include icon_template? For instance, here is one that I have for my washing machine:

# Washing Machine - Current State      
- platform: template
  sensors:
    washing_machine_current_state:
      friendly_name: "Washing Machine Current State"
      value_template: "{{ states.input_select.state_washingmachine.state }}"
      icon_template: '{%- if is_state("input_select.state_washingmachine", "On") %}mdi:washing-machine{% else %}mdi:washing-machine-off{%- endif %}'

sorry, i don’t understand: i need a template sensor for a light group?

I think you could pass the light group state to a template sensor and do it that way.

No you don’t.

I have many light groups and the icon changes colour with the state of the group.

You have used a normal group not a light group, or you have the wrong entity id. Light groups appear as light entities. e.g.

light.eg_woh...etc not group.eg_woh...etc

You’re right. That was the mistake!

I converted the switches to lights as described here:

Then I was able to create a normal light_group and it works fine :slight_smile:

Thank you very much!!

3|491x71