Page 1 of 1

EventHelpers.lua attempt to concatenate field 'state

Posted: Wednesday 01 November 2017 18:38
by waaren
Every once in a while I get this Error in the Domoticz log:

Error: EventSystem: in /opt/domoticz/dzVents/runtime/dzVents.lua: ...z/scripts/dzVents/../../dzVents/runtime/EventHelpers.lua:700: attempt to concatenate field 'state' (a nil value)

My workaround is to modify EventHelpers.lua (line 700) from:

Code: Select all

utils.log('Device-event for: ' .. device.name .. ' value: ' .. device.state, utils.LOG_DEBUG ) 
to

Code: Select all

 
 if ( device.state == nil ) then
               utils.log('Device-event for: ' .. device.name .. ' value:  nil ', utils.LOG_DEBUG)
 else
             utils.log('Device-event for: ' .. device.name .. ' value: ' .. device.state, utils.LOG_DEBUG)
 end
 


but I don't think this is a real solution and I have to do this again after every Domoticz update because this file gets overwritten.

Is this a bug of a feature ?

Re: EventHelpers.lua attempt to concatenate field 'state

Posted: Thursday 02 November 2017 7:45
by dannybloe
It is a bug that will be fixed in the next update.