Page 1 of 1

little bug in dzvents

Posted: Sunday 16 June 2019 0:44
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}   
	        },


Re: little bug in dzvents

Posted: Sunday 16 June 2019 2:01
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
}

Re: little bug in dzvents

Posted: Sunday 16 June 2019 10:21
by waaren
fixed in V4.10915

Re: little bug in dzvents  [Solved]

Posted: Sunday 16 June 2019 10:23
by pvklink
thanks again! :-)