I have 5 rooms in my house, in each, I have a heater with 3 possible states. I created then 15 virtual switches, one for each state of each heater. The states are "confort", eco" and "off". Each switch executes a script when turned "on" and does nothing when turned "off". I have also added one event by switch when turned "on" which turns the other switches of the same room to "off". Turning "on" the switches does exactly what I expect on the heater but the event seems not working, since it does not turn "off" the other switches of the same room.
Here is my config:

The events are similar to this one:

In the second figure, if I turn "on" the switch labeled "cuisine confort", it does not turn "off" the two other "cuisine" switches. Any idea why it does not work?
Thanks a lot.