21.01.2020, 16:46
Create virtual bit object, to which you will link your switch. Create event based script on your virtual object and past this.
Change the lampAddres which is group of your light.
Code:
lampAddress= '0/0/7'
value = event.getvalue()
lamp = grp.getvalue(lampAddress)
if value == false then
if (lamp == true) then
grp.write(lampAddress, false)
else
grp.write(lampAddress, true)
end
end
------------------------------
Ctrl+F5
Ctrl+F5