Hello together,
first excuse my bad english
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
g92847
(g92847)
January 12, 2020, 7:14pm
2
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?
g92847
(g92847)
January 12, 2020, 8:03pm
4
I think you could pass the light group state to a template sensor and do it that way.
tom_l
January 12, 2020, 8:35pm
5
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
Thank you very much!!
3|491x71