check dead devices script error  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

check dead devices script error

Post 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 }
}
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

Re: check dead devices script error  [Solved]

Post by gmccarthy »

Fixed it by changing code to:

Code: Select all

local message = ''
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest