Page 1 of 1

Dzvents after domoticz update

Posted: Wednesday 17 March 2021 19:37
by Adso76
I have just updated domoticz to version 2020.2, Build Hash: b63341bc0, dzVents Version: 3.0.2

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.

Re: Dzvents after domoticz update

Posted: Wednesday 17 March 2021 19:54
by waaren
Adso76 wrote: Wednesday 17 March 2021 19:37 I have just updated domoticz to version 2020.2, Build Hash: b63341bc0, dzVents Version: 3.0.2
In a previous version I had a dzvents script which worked and after upgrade doesn't.
It's a bug in that version. Check this topic