check dead devices script error  [

gmccarthy
Posts: 21
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi
Domoticz version: beta
Location: United Kingdom
Contact:

check dead devices script error

Postby gmccarthy » Monday 14 November 2016 20:03

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 }
}

gmccarthy
Posts: 21
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi
Domoticz version: beta
Location: United Kingdom
Contact:

Re: check dead devices script error  [

Postby gmccarthy » Thursday 24 November 2016 12:08

Fixed it by changing code to:

Code: Select all

local message = ''


Return to “dzVents Lua Framework”

Who is online

Users browsing this forum: No registered users and 1 guest