little bug in dzvents  [Solved]

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

Moderator: leecollings

Post Reply
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

little bug in dzvents

Post by pvklink »

Is this a little bug?
I try to use a wil card in the device part of the ON
pc-niels-game* does not work (are ping devices)
06-peter is a ping device and works (because i used the full name)

Code: Select all

return {
	on =    {   devices = {'Default_heating','pc-niels-game*','06-peter'},
	            httpResponses = {hook1,hook2},
                timer = {OffTimer1, OffTimer2}   
	        },

Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: little bug in dzvents

Post by waaren »

pvklink wrote: Sunday 16 June 2019 0:44 Is this a little bug?
Sorry but with this limited amount of information I can only guess.
So my guess is... no. This is not a bug. :D

On a more serious note.
I did some investigation and this wildcarded devicename does indeed not trigger the script when changed. I will look into it.

Code: Select all

return {    on = { devices = { 
                    'pc-niels-game*', -- does not trigger 
                    'pc-niels-*', -- does not trigger 
                    'pc-niels*', -- does not trigger 
                    'pc-n*', -- does not trigger 
                    'pc-*', -- does trigger 
                  }},
            logging = { level = domoticz.LOG_DEBUG, marker = 'wildcard'},

    execute = function(dz, item )
        dz.log(item.name .. ' ==>> ' .. item.state,dz.LOG_DEBUG)
    end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: little bug in dzvents

Post by waaren »

fixed in V4.10915
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: little bug in dzvents  [Solved]

Post by pvklink »

thanks again! :-)
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest