22.01.2020, 17:31
Code:
lampAddress= '0/0/7'
value = event.getvalue()
lamp = grp.getvalue(lampAddress)
if value == 0 then
if (lamp == true) then
grp.write(lampAddress, false)
else
grp.write(lampAddress, true)
end
end
------------------------------
Ctrl+F5
Ctrl+F5