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.

KNX PIR detection should execute url (WLED)
#4
You can change the goto Sprung1 into return and remove ::Sprung1:: to stop executing the rest of the 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')
   return
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
Reply


Messages In This Thread
RE: KNX PIR detection should execute url (WLED) - by Erwin van der Zwart - 16.11.2021, 12:26

Forum Jump: