EQ3 Max! LUA - Partially working

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
bigmacd
Posts: 4
Joined: Wednesday 13 January 2016 23:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

EQ3 Max! LUA - Partially working

Post by bigmacd »

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

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)
RFXtrx433E
Raspberrypi 2
MAX EQ3
GPIO
Homeeasy
Mercury
CumulusMX
bigmacd
Posts: 4
Joined: Wednesday 13 January 2016 23:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: EQ3 Max! LUA - Partially working

Post by bigmacd »

Ok so this is my setup.
Once I compared the test and live code I could see the extra character is dealt with in the live code so I am guessing I have not set up the domoticz devices properly.
The only device I have not added is the eco switch but I see the test script is showing as a valve... is this the problem?
As you can see I have two thermostats.

Any guidance much appreciated.

How can i debug the lua??

Thanks

Code: Select all

Rooms
-----
Sitting Room	0F9642	109	111
Guest Bedroom	1560CA	109	111
Kitchen	10278A	110	101
Music Room	102784	109	111
Dressing Room	1027E0	109	111
Guest Bathroom	118612	109	111
Master Bathroom	10282C	109	111
Office	1184BB	101	99
Master Bedroom	1184C3	109	111

Devices
-------
Kitchen-Stat	103417
Master Bathroom-Rad	10282C
Kitchen-Rad	10278A
Music Room Front-Rad	102784
Music Room Back-Rad	1184B9
Guest Bedroom Store-Rad	1555DD
Dressing Room-Rad	1027E0
Guest Bathroom-Rad	118612
Guest Bedroom-Rad	1560CA
Sitting Room-Stat	14E23D
Sitting Room Rear-Rad	0F964F
Sitting Room Front-Rad	0F9642
Office-Rad	1184BB
Eco Switch	0B3A8B
Master Bedroom-Rad	1184C3

Device status
-------------
Valve    	Guest Bathroom-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Valve    	Music Room Front-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Thermostat	Sitting Room-Stat	Setpoint=20.5	Temp=19.8	Valve pos=-1	Battery=OK	Mode=Auto
Valve    	Master Bedroom-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Valve    	Sitting Room Rear-Rad	Setpoint=20.5	Temp=0	Valve pos=100	Battery=OK	Mode=Auto
Valve    	Eco Switch	Setpoint=20.5	Temp=0	Valve pos=100	Battery=OK	Mode=Auto
Valve    	Office-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Valve    	Music Room Back-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Valve    	Dressing Room-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Valve    	Master Bathroom-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Thermostat	Kitchen-Stat	Setpoint=22.5	Temp=17	Valve pos=-1	Battery=OK	Mode=Auto
Valve    	Guest Bedroom Store-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Valve    	Sitting Room Front-Rad	Setpoint=20.5	Temp=0	Valve pos=100	Battery=OK	Mode=Auto
Valve    	Guest Bedroom-Rad	Setpoint=10	Temp=0	Valve pos=0	Battery=OK	Mode=Auto
Valve    	Kitchen-Rad	Setpoint=22.5	Temp=0	Valve pos=100	Battery=OK	Mode=Auto
RFXtrx433E
Raspberrypi 2
MAX EQ3
GPIO
Homeeasy
Mercury
CumulusMX
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest