Dzvents after domoticz update

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Adso76
Posts: 20
Joined: Tuesday 28 August 2018 21:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dzvents after domoticz update

Post 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.
Domoticz Version: 4.9895 running on Raspberry Pi B 3+ (Raspbian). PCF8574 as input and output.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dzvents after domoticz update

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests