Page 1 of 1

check dead devices script error

Posted: Monday 14 November 2016 19:03
by gmccarthy
I'm trying to get the check dead devices.lua example script working and running into issues.

Getting this error:

Code: Select all

2016-11-14 18:00:00.686 LUA: =====================================================
2016-11-14 18:00:00.687 LUA: >>> Handler: check-dead-devices
2016-11-14 18:00:00.687 LUA: .....................................................
2016-11-14 18:00:00.688 LUA: An error occured when calling event handler check-dead-devices
2016-11-14 18:00:00.688 LUA: ...e/pi/domoticz/scripts/lua/scripts/check-dead-devices.lua:23: attempt to concatenate local 'message' (a nil value)
2016-11-14 18:00:00.688 LUA: .....................................................
2016-11-14 18:00:00.688 LUA: <<< Done
I'm using the example as it except for changing the device name:

Code: Select all

local devicesToCheck = {
        { ['name'] = 'Garage Door', ['threshold'] = 30 }
}

Re: check dead devices script error  [Solved]

Posted: Thursday 24 November 2016 11:08
by gmccarthy
Fixed it by changing code to:

Code: Select all

local message = ''