I'm trying to test the dvvents feature , but i'm having trouble with a simple script :
Code: Select all
return {
active = true, -- set to false to disable this script
on = {
devices = {
'AutomaticAlarm', -- device name
},
},
execute = function(domoticz, device)
print(device.name)
if (device.state == 'On') then
domoticz.variables('AutomaticAlarmInsert').set(1)
else
domoticz.variables('AutomaticAlarmInsert').set(0)
end
commandArray = {}
end
}
Please note that my domoticz setup run only with https enabled (http is disable due to security reason)Error: Error opening url: http://127.0.0.1:/json.htm?type=command ... e=0&idx=24
Can someone tell me if this error is due to the http disabled ?
If http is the problem, there is a way to have dzvents working with https ?