EQ3 Max! LUA - Partially working
Posted: Sunday 08 January 2017 23:18
Great work on the scripts.
I am finding that things are working but I am getting - lua 21: bad argument #1 to sub and some dummy devices are not updating.
When I review the maxtest I seem to have an additional character on the end of some of the room and device names.
I think this has happened when I edited the names within Max! configuration and the new name was shorter than the original. These seem to be the failing devices.
Any thoughts?
Thanks in advance
I am finding that things are working but I am getting - lua 21: bad argument #1 to sub and some dummy devices are not updating.
When I review the maxtest I seem to have an additional character on the end of some of the room and device names.
I think this has happened when I edited the names within Max! configuration and the new name was shorter than the original. These seem to be the failing devices.
Any thoughts?
Thanks in advance
Code: Select all
2017-01-08 22:00:01.107 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/script_time_max.lua:21: bad argument #1 to 'sub' (string expected, got nil)
2017-01-08 22:05:01.015 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/script_time_max.lua:21: bad argument #1 to 'sub' (string expected, got nil)