Switch1 turn off switch2

Hello.How I can turn off switch1 with switch2 and vice versa.


I want when use buttons in Switch1 to turn off swith2 and vice versa so I don't have problem with overlaying

Using scripting, in switch 1:

set('switch_2_id', '', {sync:false})

and in switch 2:

set('switch_1_id', '', {sync:false})

Don't work :frowning: Or I don't know how to enter properly.i just copy this lines into swich1 and 2.Do I need to write something else in this ' '?Sorry I m new to casing

These lines go in the switches' script properties, you have to replace switch_2_id with the actual id of switch 2.

Do I need to write something else in this ' '

No, it's empty to set the switch back to its initial state where no value is selected.

I have tried your solution @jean-emmanuel but there is an issue. Switches seem to be unvailable then.
2-switches-no-working.json (3.0 KB)

A little mistake of mine, I've edited my post.

Merci bien !

2-switches-working.json (3.1 KB)