I’m building my first dashboard new to HA, and currently I have a light bulb Icon (Using template card) I sent a domain to count how many lights are on in the house.
Most of my light switches are controlled by Shelly 1PM plus.
However I do have 3 light switches that are Lightwave.
the problem I’m having is the domain is looks for lights, and lightwave name the LEDs on the light switches as also Lights so it falsely counts these lights too.
The entity for a shelly is
light.ls_barnhallway_switch_0
The entity for the lightwave light switch LEDs is
light.light_switch_bedroom_1_led
My code I’m using to count lights as follows:
So my question is how do I get it to excluded the count of the LED on the light switch plate?
So it gets the right count of lights being on.
Any help will be super appreciated.