I would like add the three lights of my corridor that are switched on/off with a single switch at floorplan but if I add multiple icons with the same id, it only shows one in floorplan.
This is what I have in inkscape:
That what I got in HA:
Does anybody know how to do it? I have tryied to create a group with those 3 elements but it does not work.
If I understand what you are after put the light icon in the 3 places then highlight all three using SHIFT then group them. Then add the entity id to be group. Will that do what you are after?
the three red squares are the places where it is suppose to appear each light bulb… but instead, it appears a huge light bulb with the height and width of the group selection…
maybe the problem is in the foorplan.yaml intead of in the .svg…
in svg I set:
group_id: name of my HA switch (switch.shelly_1_xxxxxxx_relay_0)
If you have the three bulb icons added to your SVG and then group them I think you should find they are invisible when the light is off but if you touch in any of the three places where the bulb is they will all become visible and the light will turn on. Will that be any good?
Thanks for your suggestion! This works but partially… I mean, meanwhile the light is on I can see the light bulb icon for the three lights I set at svg but when turned off, these light bulbs disappears What I need is that in off state the bulb like this:
Yes no problem. Add a white bulb to the SVG in the 3 locations (I assume this is the OFF indication). Now add a yellow bulb exactly on top of each of those white bulbs, group only the yellow bulbs and then set up the yaml as before. Now when the lights are off the yellow bulbs should be invisible and when you click on any of the locations the yellow bulbs become visible.
Yes, I was thinking to do that but the problem is that you cannot create 2 groups/entities with the same name. In my case, the group has the name of the switch so if I set the bulbs in off state and I group them, I cannot set the same name of the switch I want to control.
The white bulbs have no entity name. Just put the entity name on the group of 3 yellow bulbs. Even though you cant see them you can still click on them and you know where to click because the white bulb is showing you.