Logic Machine Forum
Control 2 lights trough Script - 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: Control 2 lights trough Script (/showthread.php?tid=4667)



Control 2 lights trough Script - Zebensui - 22.03.2023

Hi all,

I have a staircase divided into two different sections: '1/0/47' and '1/0/48' but I need to control its lights together (on/off and dimming). How can I do this through scripting?

Thanks.


RE: Control 2 lights trough Script - admin - 22.03.2023

Create a new group address and map an event script to it:
Code:
value = event.getvalue()
grp.write('1/0/47', value)
grp.write('1/0/48', value)



RE: Control 2 lights trough Script - Zebensui - 22.03.2023

(22.03.2023, 12:43)admin Wrote: Create a new group address and map an event script to it:
Code:
value = event.getvalue()
grp.write('1/0/47', value)
grp.write('1/0/48', value)

Thanks a lot