14.11.2021, 08:15
(This post was last modified: 14.11.2021, 08:20 by Erwin van der Zwart.)
Try this:
Code:
http = require('socket.http')
PIR1 = grp.getvalue('1/1/19')
PIR2 = grp.getvalue('1/1/20')
if PIR1 or PIR2 then
http.request('http://192.168.178.128/win&T=1')
else
http.request('http://192.168.178.128/win&T=0')
end