Can anyone point out what's wrong with this script. I think I've got the syntax wrong somewhere. I'm getting an error expected then in line 3.
sub main()
if hs.devicevalue 3("]12") then
hs.setdevicevalue "]12","0"
end if
end sub
sub main()
if hs.devicevalue 3("]12") then
hs.setdevicevalue "]12","0"
end if
end sub
Comment