15.11.2021, 22:09
It's amazing, it works. So fast it can work if you know the material.
After I have now "seen through" the script with your help, I could combine this with my day / night circuit, so that from night circuit (0) the orientation light goes on. If one of the motion detectors detects something (1) the FullLight goes on and at (0) back to the orientation light. With night switching to day (1) nothing is triggered.
Enclosed the working script:
Many thanks. This thread can be closed.
Best regards.
Martin
After I have now "seen through" the script with your help, I could combine this with my day / night circuit, so that from night circuit (0) the orientation light goes on. If one of the motion detectors detects something (1) the FullLight goes on and at (0) back to the orientation light. With night switching to day (1) nothing is triggered.
Enclosed the working script:
Code:
http = require('socket.http')
PIR1 = grp.getvalue('1/1/19')
PIR2 = grp.getvalue('1/1/20')
DayNight = grp.getvalue('0/4/0')
if DayNight then
http.request('http://192.168.178.128/win&T=0')
goto Sprung1
end
if
PIR1 or PIR2 then
http.request('http://192.168.178.128/win&PL=2')
else
http.request('http://192.168.178.128/win&PL=3')
end
::Sprung1::
Many thanks. This thread can be closed.
Best regards.
Martin