What i did:
-- stripped the script to the essential problem
-- also installed curl within the default docker container (domoticz/domoticz) in bridge mode,
-- no solution, error stays
-- think that it has something to do with the callback ?
RPI 4b4gb, buster latest beta
Domoticz docker domoticz/domoticz
error
Code: Select all
2021-06-15 08:23:05.123 Status: User: Admin (IP: 192.168.1.10) initiated a switch command (1483/testxx/Off)
2021-06-15 08:23:05.268 Status: dzVents: Info: ------ Start internal script: testdenon: Device: "testxx (dummydevices)", Index: 1483
2021-06-15 08:23:05.269 Status: dzVents: Debug: OpenURL: url = http://192.168.20.26/MainZone/index.put.asp?cmd0=PutZone_OnOff/OFF
2021-06-15 08:23:05.269 Status: dzVents: Debug: OpenURL: method = GET
2021-06-15 08:23:05.269 Status: dzVents: Debug: OpenURL: post data = nil
2021-06-15 08:23:05.269 Status: dzVents: Debug: OpenURL: headers = nil
2021-06-15 08:23:05.269 Status: dzVents: Debug: OpenURL: callback = testxx
2021-06-15 08:23:05.270 Status: dzVents: Info: ------ Finished testdenon
2021-06-15 08:23:05.492 Status: dzVents: Info: ------ Start internal script: testdenon: HTTPResponse: "testxx"
2021-06-15 08:23:05.493 Status: dzVents: Debug: Denon successfully send
2021-06-15 08:23:05.494 Status: dzVents: Info: ------ Finished testdenon
2021-06-15 08:23:05.293 Error: Error opening url: http://192.168.20.26/MainZone/index.put.asp?cmd0=PutZone_OnOff/OFF
Code: Select all
return {
on = {
devices = {'testxx'},
httpResponses = {'testxx'}
},
logging =
{
level = domoticz.LOG_DEBUG,
marker = testxx,
},
execute = function(dz, item,info)
if item.isDevice then
if item.state == 'Off' then
dz.openURL({url='http://192.168.20.26/MainZone/index.put.asp?cmd0=PutZone_OnOff/OFF',method = 'GET',callback = 'testxx'})
else
dz.openURL({url='http://192.168.20.26/MainZone/index.put.asp?cmd0=PutZone_OnOff/ON',method = 'GET',callback = 'testxx'})
end
elseif (item.isHTTPResponse) then
if (item.ok) then
dz.log('Denon successfully send', dz.LOG_DEBUG)
else
dz.log('No valid response from Denon command: ' .. item.statusCode, dz.LOG_ERROR)
dz.log(item, dz.LOG_DEBUG)
end
end
end
}