UI Scene Widget and Control System

thank you @JustinG for explanations. I made a lot progress :slight_smile:
There is last thing I’m struggling with. You mentioned about:

If I create proxyItem switch to activate scene it turn on scene when change from OFF to ON but I would like to also use this undoSettings feature to deactivate scene when proxyItem change state from ON to OFF.

I tried to modify last line in the script:
from

//Activate
run_controller('scene_controller_gabinet_light',false)

to

//Activate
run_controller('scene_controller_gabinet_light',true)

but it does not work as I expected.
can you help with some example?