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
The entity for the lightwave light switch LEDs is
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.