Code: Select all
2021-09-30 11:30:01.561 (AJAX) 192.168.2.200 iMac Guy device=Rbureel command=roller action=10
2021-09-30 11:30:01.562 (SETLEVEL) Guy=>Rbureel=>10 (ajax.php:174)
2021-09-30 11:30:01.561 Status: User: Admin (IP: 127.0.0.1) initiated a switch command (800/Rbureel/Set Level)
2021-09-30 11:30:01.562 ZWAVE: Domoticz has send a Switch command!, Level: 10, NodeID: 81 (0x51)
2021-09-30 11:30:01.562 ZWAVE: Light/Switch (Rbureel)
2021-09-30 11:30:01.565 Status: LUA: wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d=Rbureel&s=Open" &
2021-09-30 11:30:01.572 (STORE) => Rbureel => 0 (Pass2PHP)
2021-09-30 11:30:01.723 ZWAVE: Light/Switch (Rbureel)
2021-09-30 11:30:01.725 Status: LUA: wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d=Rbureel&s=Open" &
2021-09-30 11:30:01.730 (STORE) => Rbureel => 0 (Pass2PHP)
2021-09-30 11:30:03.771 ZWAVE: Light/Switch (Rbureel)
2021-09-30 11:30:03.772 Status: LUA: wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d=Rbureel&s=Open" &
2021-09-30 11:30:03.779 (STORE) => Rbureel => 0 (Pass2PHP)
Code: Select all
commandArray={}
local function isRealSensor(name)
return otherdevices_idx[name]
end
for d, s in pairs(devicechanged) do
if isRealSensor(d) and d ~= 'blocklua' then
print('wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d='..d..'&s='..s..'" &')
os.execute('wget -O /dev/null -o /dev/null "http://127.0.0.1/secure/pass2php.php?d='..d..'&s='..s..'" &')
end
end
return commandArray