ELV Max! Heating control system
Moderator: leecollings
-
- Posts: 11
- Joined: Thursday 24 March 2016 15:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
after two years of correct function MaxBuddy hangs after two days running max.
I try LUA script. on windows
installed LuaForWindows_v5.1.4-46
MAX! dummy created
script edited
IP, port, path
Basexx = require "base64"
but still don't run
C:\Program Files (x86)\Lua\5.1>cubeScript.lua
C:\Program Files (x86)\Lua\5.1\lua.exe: C:\Program Files (x86)\Lua\5.1\cubeScript.lua
106: attempt to call field 'from_base64' (a nil value)
stack traceback:
C:\Program Files (x86)\Lua\5.1\cubeScript.lua:106: in function 'maxCmd_M'
C:\Program Files (x86)\Lua\5.1\cubeScript.lua:264: in main chunk
[C]: ?
any idea , I need only reading from MAX
I try LUA script. on windows
installed LuaForWindows_v5.1.4-46
MAX! dummy created
script edited
IP, port, path
Basexx = require "base64"
but still don't run
C:\Program Files (x86)\Lua\5.1>cubeScript.lua
C:\Program Files (x86)\Lua\5.1\lua.exe: C:\Program Files (x86)\Lua\5.1\cubeScript.lua
106: attempt to call field 'from_base64' (a nil value)
stack traceback:
C:\Program Files (x86)\Lua\5.1\cubeScript.lua:106: in function 'maxCmd_M'
C:\Program Files (x86)\Lua\5.1\cubeScript.lua:264: in main chunk
[C]: ?
any idea , I need only reading from MAX
Rpi+Domoticz+EQ3+RFLink
-
- Posts: 32
- Joined: Saturday 09 September 2017 23:38
- Target OS: Windows
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
Why did you change
Basexx = require "basexx"
into
Basexx = require "base64"
Basexx = require "basexx"
into
Basexx = require "base64"
-
- Posts: 11
- Joined: Thursday 24 March 2016 15:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
I don't have basexx lua. now I have basexx.lua on system.
Now I try maxtest/lua
error on the end
lua -e "io.stdout:setvbuf 'no'" "maxtest.lua"
Rooms
-----
Bed ROOM 0821EF
Living ROOM 173F01
Corridor 173CB5
SIMA ROOM 0821FB
MATA ROOM 0821F8
Devices
-------
BR-WT 09B522
LR-WT 09B827
LR-RT 0821F8
CH1R-WT 0970F8
WS-M 1597B7
WT-LR 16B49E
RT-LR-basic 173F01
WS-S 15983A
BR-RT 0821EF
RT-Corr 173CB5
CH1R-RT 0821FB
Device status
-------------
lua: maxtest.lua:91: attempt to index global 'bit32' (a nil value)
stack traceback:
maxtest.lua:91: in function 'maxCmd_L'
maxtest.lua:148: in main chunk
[C]: ?
Now I try maxtest/lua
error on the end
lua -e "io.stdout:setvbuf 'no'" "maxtest.lua"
Rooms
-----
Bed ROOM 0821EF
Living ROOM 173F01
Corridor 173CB5
SIMA ROOM 0821FB
MATA ROOM 0821F8
Devices
-------
BR-WT 09B522
LR-WT 09B827
LR-RT 0821F8
CH1R-WT 0970F8
WS-M 1597B7
WT-LR 16B49E
RT-LR-basic 173F01
WS-S 15983A
BR-RT 0821EF
RT-Corr 173CB5
CH1R-RT 0821FB
Device status
-------------
lua: maxtest.lua:91: attempt to index global 'bit32' (a nil value)
stack traceback:
maxtest.lua:91: in function 'maxCmd_L'
maxtest.lua:148: in main chunk
[C]: ?
Rpi+Domoticz+EQ3+RFLink
-
- Posts: 32
- Joined: Saturday 09 September 2017 23:38
- Target OS: Windows
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
What is maxtest.lua? I don't remember this file. you should'nt need this script.
I gave you my cubeScript.lua file which was adapted to work on Lua 5.1, because mvzut's one was written for Lua 5.2.
I gave you my cubeScript.lua file which was adapted to work on Lua 5.1, because mvzut's one was written for Lua 5.2.
-
- Posts: 11
- Joined: Thursday 24 March 2016 15:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
maxtest.lua from https://www.domoticz.com/wiki/EQ3_MAX!
now I must create all devices manually in domoticz ?
now I must create all devices manually in domoticz ?
Rpi+Domoticz+EQ3+RFLink
-
- Posts: 11
- Joined: Thursday 24 March 2016 15:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
after renaming in MAX
Rooms
-----
Bed ROOM 0821EF
Living ROOM 173F01
Corridor 173CB5
SIMA ROOM 0821FB
MATA ROOM 0821F8
Devices
-------
WT-BedRoom 09B522
WT-Mata 09B827
RT-Mata 0821F8
WT-Sima 0970F8
WS-Mata 1597B7
WT-LivingRoom 16B49E
RT-LivingRoom 173F01
WS-Sima 15983A
RT-BedRoom 0821EF
RT-Corridor 173CB5
RT-Sima 0821FB
Device status
-------------
lua: maxtest.lua:91: attempt to index global 'bit32' (a nil value)
stack traceback:
maxtest.lua:91: in function 'maxCmd_L'
maxtest.lua:148: in main chunk
[C]: ?
Rooms
-----
Bed ROOM 0821EF
Living ROOM 173F01
Corridor 173CB5
SIMA ROOM 0821FB
MATA ROOM 0821F8
Devices
-------
WT-BedRoom 09B522
WT-Mata 09B827
RT-Mata 0821F8
WT-Sima 0970F8
WS-Mata 1597B7
WT-LivingRoom 16B49E
RT-LivingRoom 173F01
WS-Sima 15983A
RT-BedRoom 0821EF
RT-Corridor 173CB5
RT-Sima 0821FB
Device status
-------------
lua: maxtest.lua:91: attempt to index global 'bit32' (a nil value)
stack traceback:
maxtest.lua:91: in function 'maxCmd_L'
maxtest.lua:148: in main chunk
[C]: ?
Rpi+Domoticz+EQ3+RFLink
-
- Posts: 22
- Joined: Tuesday 21 November 2017 23:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
Hello, since a few days I receive an error on the script_time_max.lua script
Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/JSON.lua:1009: /home/pi/domoticz/scripts/lua/JSON.lua:834: Lua script execution exceeds maximum number of lines
It was running good for several weeks. When the error came the first time I didn't make any changes to domoticz or the PI .
Any help would be great, I'm just a beginner with the scripts.
Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/JSON.lua:1009: /home/pi/domoticz/scripts/lua/JSON.lua:834: Lua script execution exceeds maximum number of lines
It was running good for several weeks. When the error came the first time I didn't make any changes to domoticz or the PI .
Any help would be great, I'm just a beginner with the scripts.
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: ELV Max! Heating control system
Hmmm, strange, especially since it suddenly started without any changes made to the system.oasisnl wrote:Hello, since a few days I receive an error on the script_time_max.lua script
Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/JSON.lua:1009: /home/pi/domoticz/scripts/lua/JSON.lua:834: Lua script execution exceeds maximum number of lines
It was running good for several weeks. When the error came the first time I didn't make any changes to domoticz or the PI .
Any help would be great, I'm just a beginner with the scripts.
Do you get the same errors of you run the test script from the command line?
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
-
- Posts: 18
- Joined: Friday 25 December 2015 9:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
Not been here for a little while, but experimenting with my MAX! eq3 cube brought me back.
I was thinking of how to make an embeded boiler controller, that wouldn't need to run on Domoticz, or raspberry pi or other server.
I noticed that ESP8266 can run LUA scripts - does that mean there's a posibility to run the max lua scripts (https://www.domoticz.com/wiki/EQ3_MAX!) on an tiny ESP device with relays connected?
That would be very nifty.
I was thinking of how to make an embeded boiler controller, that wouldn't need to run on Domoticz, or raspberry pi or other server.
I noticed that ESP8266 can run LUA scripts - does that mean there's a posibility to run the max lua scripts (https://www.domoticz.com/wiki/EQ3_MAX!) on an tiny ESP device with relays connected?
That would be very nifty.
-
- Posts: 18
- Joined: Friday 25 December 2015 9:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
Not been here for a little while, but experimenting with my MAX! eq3 cube brought me back.
I was thinking of how to make an embeded boiler controller, that wouldn't need to run on Domoticz, or raspberry pi or other server.
I noticed that ESP8266 can run LUA scripts - does that mean there's a posibility to run the max lua scripts (https://www.domoticz.com/wiki/EQ3_MAX!) on an tiny ESP device with relays connected?
That would be very nifty.
I was thinking of how to make an embeded boiler controller, that wouldn't need to run on Domoticz, or raspberry pi or other server.
I noticed that ESP8266 can run LUA scripts - does that mean there's a posibility to run the max lua scripts (https://www.domoticz.com/wiki/EQ3_MAX!) on an tiny ESP device with relays connected?
That would be very nifty.
-
- Posts: 18
- Joined: Wednesday 15 March 2017 9:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
I'm using these https://github.com/autopower/thermeq3 solution. It has "some issues" but it's working over one year without any big problems.
-
- Posts: 32
- Joined: Saturday 09 September 2017 23:38
- Target OS: Windows
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
My Cube reseted like you mvzut. Is your reboot trick working? I want to prevent this shit.
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: ELV Max! Heating control system
It has not reset since more than half a year since I forced it to reboot once every week! I'm using a remote controlled wall plug for this.
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
-
- Posts: 32
- Joined: Saturday 09 September 2017 23:38
- Target OS: Windows
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
I wish I had set this trick before. The cube is out of control, I have to hard reset it and make again pairings, then room settings, then temp planning. I had fine tuned the temp offsets for all 6 valves, it will take hours to make all work again together with the domoticz devices already created using your script.
-
- Posts: 22
- Joined: Tuesday 21 November 2017 23:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
Sorry for copying the whole text, Didn't find the option to reply with quote
when I run testscript it doesn't give any errors. Also Domoticz just updates the thermostats, valves, and radiators. It just gives an error on the script?
Hello, since a few days I receive an error on the script_time_max.lua script
Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/JSON.lua:1009: /home/pi/domoticz/scripts/lua/JSON.lua:834: Lua script execution exceeds maximum number of lines
It was running good for several weeks. When the error came the first time I didn't make any changes to domoticz or the PI .
Any help would be great, I'm just a beginner with the scripts.
Hmmm, strange, especially since it suddenly started without any changes made to the system.
Do you get the same errors of you run the test script from the command line?
when I run testscript it doesn't give any errors. Also Domoticz just updates the thermostats, valves, and radiators. It just gives an error on the script?
Hello, since a few days I receive an error on the script_time_max.lua script
Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/JSON.lua:1009: /home/pi/domoticz/scripts/lua/JSON.lua:834: Lua script execution exceeds maximum number of lines
It was running good for several weeks. When the error came the first time I didn't make any changes to domoticz or the PI .
Any help would be great, I'm just a beginner with the scripts.
Hmmm, strange, especially since it suddenly started without any changes made to the system.
Do you get the same errors of you run the test script from the command line?
-
- Posts: 22
- Joined: Tuesday 21 November 2017 23:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
here is the total log from domoticz.oasisnl wrote: ↑Friday 24 November 2017 18:44 Sorry for copying the whole text, Didn't find the option to reply with quote
when I run testscript it doesn't give any errors. Also Domoticz just updates the thermostats, valves, and radiators. It just gives an error on the script?
Hello, since a few days I receive an error on the script_time_max.lua script
Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/JSON.lua:1009: /home/pi/domoticz/scripts/lua/JSON.lua:834: Lua script execution exceeds maximum number of lines
It was running good for several weeks. When the error came the first time I didn't make any changes to domoticz or the PI .
Any help would be great, I'm just a beginner with the scripts.
Hmmm, strange, especially since it suddenly started without any changes made to the system.
Do you get the same errors of you run the test script from the command line?
Rebooted the Pi to be sure, also rebooted the cube.
2017-11-24 18:50:00.066 Incoming connection from: 127.0.0.1
2017-11-24 18:50:02.677 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_max.lua: /home/pi/domoticz/scripts/lua/JSON.lua:1009: /home/pi/domoticz/scripts/lua/JSON.lua:836: Lua script execution exceeds maximum number of lines
2017-11-24 18:50:02.677 EventSystem: Fetching url...
2017-11-24 18:50:02.933 (MAX!) General/Percentage (Slaapkamer D Re Klep)
2017-11-24 18:51:01.903 Notification sent (Email)
As fas as I can see in domoticz only one valve gets updated ( slaapkamer D Re Klep)
the other valves and thermostats don't get updated. I see them al when running test script
see output from tests :
pi@raspberrypi:~/domoticz/scripts/lua $ lua maxtest.lua
Rooms
-----
HalBeneden 17ABB4
SlaapkamerJR 17AC40
Woonkamer 17AC45
SlaapkamerD 17BA61
Devices
-------
SlaapkamerJR-Stat 18F17C
SlaapkamerD-Stat 18E0CA
Woonkamer-Stat 18EA70
HalBeneden-Rad 17ABB4
SlaapkamerD_R-Rad 17BA61
SlaapkamerJR-Rad 17AC40
Woonkamer A-Rad 17AC45
Device status
-------------
Valve SlaapkamerD_R-Rad Setpoint=20 Temp=0 Valve pos=0 Battery=OK Mode=Manual
Thermostat SlaapkamerJR-Stat Setpoint=20 Temp=20.3 Valve pos=-1 Battery=OK Mode=Manual
Thermostat SlaapkamerD-Stat Setpoint=20 Temp=20.4 Valve pos=-1 Battery=OK Mode=Manual
Valve HalBeneden-Rad Setpoint=19 Temp=0 Valve pos=100 Battery=OK Mode=Manual
Thermostat Woonkamer-Stat Setpoint=21.5 Temp=21.1 Valve pos=-1 Battery=OK Mode=Manual
Valve SlaapkamerJR-Rad Setpoint=20 Temp=0 Valve pos=0 Battery=OK Mode=Manual
Valve Woonkamer A-Rad Setpoint=21.5 Temp=0 Valve pos=100 Battery=OK Mode=Manual
Hope this all helpes, I now have renamed the script so it doesn't mail me every 5 minutes but offcourse now my heating isn't controlled from domoticz.
Any help would be great.
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: ELV Max! Heating control system
Hi oasisnl,
Which version of the script do you use? Your script name (script_time_max.lua) suggests that you use the version that is automatically started by Domoticz. But this version doesn't need JSON decoding at all, so you shouldn't get this error message. The version with JSON is intended to be run outside Domoticz, e.g. with a crontab entry if you are using a Raspberry Pi or similar (which you do).
The crontab version is described here:
http://www.domoticz.com/forum/viewtopic ... 05#p104705
The Domoticz script is here:
https://www.domoticz.com/wiki/EQ3_MAX!#Max_Script
I personally use the crontab version, since the Domoticz version gives timeout errors if you have a lot of devices. Plus the crontab version creates all devices automatically for you. It just doesn't name them, you have to do that yourself. This is the easiest by running the test script once and writing down the hex codes of each device. These are shown in the device list in Domoticz as the ID for each newly created device, so you will quickly recognize which is which.
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
-
- Posts: 22
- Joined: Tuesday 21 November 2017 23:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
Hello, Thanks for the reply.mvzut wrote: ↑Saturday 25 November 2017 11:44Hi oasisnl,
Which version of the script do you use? Your script name (script_time_max.lua) suggests that you use the version that is automatically started by Domoticz. But this version doesn't need JSON decoding at all, so you shouldn't get this error message. The version with JSON is intended to be run outside Domoticz, e.g. with a crontab entry if you are using a Raspberry Pi or similar (which you do).
The crontab version is described here:
http://www.domoticz.com/forum/viewtopic ... 05#p104705
The Domoticz script is here:
https://www.domoticz.com/wiki/EQ3_MAX!#Max_Script
I personally use the crontab version, since the Domoticz version gives timeout errors if you have a lot of devices. Plus the crontab version creates all devices automatically for you. It just doesn't name them, you have to do that yourself. This is the easiest by running the test script once and writing down the hex codes of each device. These are shown in the device list in Domoticz as the ID for each newly created device, so you will quickly recognize which is which.
I guess i'm using the crontab version . It automatically created the devices for me and I had to name them in Domoticz.
I guess i'm not running it as a cronjob then??? i'm not sure about that ( i'm not much of a linux man and a real newby to scripts ). the script is placed in the domoticz\scripts\lua folder, here is also the maxtest.lua located.
here is the script i use, it refers to some json stuff as you mention
- Spoiler: show
And is there any explanation why it ran good for a couple of weeks?
Thanks in advance for the reply and the support.
-
- Posts: 32
- Joined: Saturday 09 September 2017 23:38
- Target OS: Windows
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
I'm getting crazy with the Max! software. I just hard reset it and made pairing again. I don't know why, but whenever I change the temp on one valve, three other valves automatically change to the same temp. You can see hereunder the 4 valves that react together ( 16.5°C), though it is absolutely not what I want.
-
- Posts: 22
- Joined: Tuesday 21 November 2017 23:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ELV Max! Heating control system
oasisnl wrote: ↑Saturday 25 November 2017 12:36Hello, Thanks for the reply.mvzut wrote: ↑Saturday 25 November 2017 11:44Hi oasisnl,
Which version of the script do you use? Your script name (script_time_max.lua) suggests that you use the version that is automatically started by Domoticz. But this version doesn't need JSON decoding at all, so you shouldn't get this error message. The version with JSON is intended to be run outside Domoticz, e.g. with a crontab entry if you are using a Raspberry Pi or similar (which you do).
The crontab version is described here:
http://www.domoticz.com/forum/viewtopic ... 05#p104705
The Domoticz script is here:
https://www.domoticz.com/wiki/EQ3_MAX!#Max_Script
I personally use the crontab version, since the Domoticz version gives timeout errors if you have a lot of devices. Plus the crontab version creates all devices automatically for you. It just doesn't name them, you have to do that yourself. This is the easiest by running the test script once and writing down the hex codes of each device. These are shown in the device list in Domoticz as the ID for each newly created device, so you will quickly recognize which is which.
I guess i'm using the crontab version . It automatically created the devices for me and I had to name them in Domoticz.
I guess i'm not running it as a cronjob then??? i'm not sure about that ( i'm not much of a linux man and a real newby to scripts ). the script is placed in the domoticz\scripts\lua folder, here is also the maxtest.lua located.
here is the script i use, it refers to some json stuff as you mention
If it shouldn't be in the scripts folder , can you then explain where to put it and how to create a cronjob for it ( and yes i'm using PI ) .
- Spoiler: show
And is there any explanation why it ran good for a couple of weeks?
Thanks in advance for the reply and the support.
renamed the script to maxscript.lua and added following line to cron
in the domoticz none of the valves and thermostats get updated?
- Spoiler: show
Who is online
Users browsing this forum: No registered users and 1 guest