Get an error:
2017-08-20 09: 21: 16,548 Error: dzVents: Error: An error occured when calling event deals testpushover
2017-08-20 09: 21: 16,548 Error: dzVents: Error: ... oticz / scripts / dzVents / generated_scripts / testpushover.lua: 13: attempt to call global 'openUrl' (a nil value)
My full code is:
Code: Select all
return {
active = true,
on = {
devices = {
'Test Dummy'
}
},
execute = function(domoticz, TestDummy)
local DeurBergingBuiten = domoticz.devices('Deur berging buiten')
local LampBerging = domoticz.devices('Lamp berging')
if (TestDummy.state == 'On') then
openUrl('https://api.telegram.org/botxxxxxxx:mycode/sendMessage?chat_id=xxxxxxx&text=Test van Ad')
end
end
}