When the second switch is clicked the first is actually flipped.
When more of those switches are added always the first one is flipped.
This happens in every room view (the virtual rooms "all" and 2unassigned" as well as named rooms):
If you have for example 2 rooms with 2 switches each always the topmost switch in the current room is toggled.
I guess the reason is that all of these switches have the same id:
<input type="checkbox" value="1" id="Power">.
Maybe we should randomize the IDs that they are unlikely to be equal.
Having multiple switches with different names works fine.
I've got a very easy setup with 2 devices both having only a power switch. Something like this:
When the second switch is clicked the first is actually flipped. When more of those switches are added always the first one is flipped. This happens in every room view (the virtual rooms "all" and 2unassigned" as well as named rooms): If you have for example 2 rooms with 2 switches each always the topmost switch in the current room is toggled.
I guess the reason is that all of these switches have the same id:
<input type="checkbox" value="1" id="Power">
. Maybe we should randomize the IDs that they are unlikely to be equal. Having multiple switches with different names works fine.