This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

roll down shutter when theres an alarm
#1
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
Reply


Messages In This Thread
roll down shutter when theres an alarm - by h5345 - 20.05.2024, 21:21

Forum Jump: