hi, im trying to use a script to roll down a shutter when theres an alarm
alarm1 = grp.getvalue('0/0/x')
-- i dont know if im getting the shutter position right by getting the value from "movement in manual mode" object, 1.008
shutterposition = grp.getvalue('0/0/y')
if alarm1 then
if not shutterposition then
grp.write('0/0/x/', true)
end
end
i did try the script out and it was working but they told me today its not working. if the shutters half open, should the script still work?
there was also another object for height feedback (5.001 0-100%) but it wasnt getting updated for one of the shutter so i tried using the other object and im guessing its not getting updated correctly
should i be using 'feedback for last direction' object in the if statement?
edit: nvm, they told me its working. the script runs every 2 minutes and they didnt wait that time. i should probably switch it to event based
alarm1 = grp.getvalue('0/0/x')
-- i dont know if im getting the shutter position right by getting the value from "movement in manual mode" object, 1.008
shutterposition = grp.getvalue('0/0/y')
if alarm1 then
if not shutterposition then
grp.write('0/0/x/', true)
end
end
i did try the script out and it was working but they told me today its not working. if the shutters half open, should the script still work?
there was also another object for height feedback (5.001 0-100%) but it wasnt getting updated for one of the shutter so i tried using the other object and im guessing its not getting updated correctly
should i be using 'feedback for last direction' object in the if statement?
edit: nvm, they told me its working. the script runs every 2 minutes and they didnt wait that time. i should probably switch it to event based