In a previous version I had a dzvents script which worked and after upgrade doesn't.
Code: Select all
return {
on =
{
devices = {'Device1'},
},
execute = function(domoticz, Device1)
if (Device1.state == "Off") and (Device1.lastUpdate.minutesAgo > 10) then
domoticz.devices('Device2').switchOff().checkFirst().afterMin(5)
domoticz.devices('Device2').switchOn().checkFirst().forMin(5)
end
end
}
In logs I can see that script is initiated, but Device2 doesn't switch on.
2021-03-17 19:23:43.802 Status: dzVents: Info: Handling events for: "Device1", value: "Off"
2021-03-17 19:23:43.802 Status: dzVents: Info: ------ Start internal script: Device2 activation: Device: "Device1 (lan)", Index: 146
2021-03-17 19:23:43.802 Status: dzVents: Info: ------ Finished Device2 activation
Thanks in advance for any suggestions.