Logic Machine Forum
3 Lightning objects - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: 3 Lightning objects (/showthread.php?tid=1639)



3 Lightning objects - Bobby - 09.10.2018

Hi!

In my living room i have 3 zones of light, each one has it own knx adress.
how can i make an object to control all 3 of them simoultaneously? i have made a scene, with a value of eg 160 on each, so i can turn it on to a predefined value.  but is it possible to have 1 dimming controller to control all 3 togeher?


RE: 3 Lightning objects - admin - 10.10.2018

Create a virtual object with the same data type, then attach an event script to it (change 1/1/1, 1/1/2, 1/1/3 to your light objects):
Code:
value = event.getvalue()
grp.write('1/1/1', value)
grp.write('1/1/2', value)
grp.write('1/1/3', value)



RE: 3 Lightning objects - Bobby - 11.10.2018

Thanx, that was easy! Smile Smile