EventHelpers.lua attempt to concatenate field 'state
Posted: Wednesday 01 November 2017 18:38
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:
to
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 ?
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 ) 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 ?