After few upgrades ago, error with setColor started occurs...
script:
Code: Select all
return {
on = {
devices = {
'chodba-switch2-new'
}
},
execute = function(domoticz, device, roomSwitch)
if domoticz.devices'chodba-switch2-new'.level == 30 then
domoticz.devices'chodba-switch2-new'.switchOff().silent()
domoticz.devices'chodba-zarovka'.setColor(0,0,0, 25, 0, 0, 2, 50)
domoticz.devices'chodba-zarovka'.setColor(0,0,0, 50, 0, 0, 2, 100).afterSec(2)
domoticz.devices'chodba-zarovka'.setColor(0,0,0, 100, 0, 0, 2, 150).afterSec(4)
domoticz.devices'chodba-zarovka'.switchOff().afterSec(40)
end
end
}
Local access is enabled in settings.2020-05-26 07:01:21.784 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=com ... g":0,"b":0}
2020-05-26 07:01:23.775 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=com ... g":0,"b":0}
2020-05-26 07:01:25.783 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=com ... g":0,"b":0}
If I open url, device is updated correctly.
Version: 2020.2 (build 12071)