Thanks for asking, found a bug in scripts using table references trying to code it  pushed a new version to github for this example to work. It strikes me as not as "elegant" as the pure Lua version, maybe possible to capture these kind of use cases in a better syntax. Please login or register to see this code. However, it is easy to generalize to many keys dimming many different lights, something that one have to solve with multiple version of the Lua script above. 009cdcf31b8c7d2a0975e94