Floorplan toggling off/on lights/switches multiple times - solved :)

Hi All,

If like me you are having trouble with floorplan causing the lights/switches to turn off and on mulitple times, I have finally found out what causes the problem!

At least in my case at any rate. The cause is the svg icons, when they are grouped for some reason I can’t fathom they cause multiple toggles to happen, now normally they should be grouped but if you ungroup each individual icon then find the largest piece of the icon (for instance for bulbs I chose the glass bulb) and give that the entity_id then save the file and CTRL-F5 to reload the svg into chrome it will work as intended :), the only downside is that the icon will only be filled at the point you selected as the click point, so for my example the glass of the bulb will be filled when on and unfilled when off, so that’s fine but some icons might not fair so well :stuck_out_tongue:

Hopefully that’s understandable, if not I’ll try to do a more in depth answer.

That solved my problem that I’m struggling about 3 days now… Thanks a lot for your post! Probably saved another week of my time :smile:

I’ve been struggling with it for the last few months :stuck_out_tongue: , since I didn’t think that the svg could be influencing the yaml code :stuck_out_tongue:

Now I have another problem that it’s not working on iPhone when I’m touching on laptop all is fine :frowning:

Thank you so much for this, will test it tomorrow! :+1:

Works like a charm! By the way, if you mark all the parts of your icon, then press path–> union in inkscape, the whole icon will be filled like before :slight_smile:

:slight_smile: thanks will try it later :slight_smile: