Page 11 of 37
Re: ELV Max! Heating control system
Posted: Thursday 26 May 2016 19:07
by jorishp
this is the output i did receive from the last script.
Code: Select all
Rooms
-----
kantoor 014B64
woonkamer 049C83
child1 01509C
washok 049CC9
Child2 012FDC
tv kamer 049C37
ketel 074992
achter 049C6E
master bedroom 049C7D
Devices
-------
Radiator kantoor 014B64
Radiator achter 049C6E
Radiator child1 01509C
Radiator washok 049CC9
Window Child2 025035
Plug Adapter ketel 074992
Radiator Child2 012FDC
Window masterbedroom 019FF2
Radiator TV kamer 049C37
Window child1 0250D6
Radiator oprit 049C83
Radiator links 049C3C
Radiator rechts 049C2F
Radiator masterbedroom 049C7D
Device status
-------------
Valve Radiator child1 Setpoint=0 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator washok Setpoint=16.5 Temp=0 Valve pos=0 Battery=OK Mode=Manual
Valve Radiator Child2 Setpoint=0 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator rechts Setpoint=0 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Plug Adapter ketel Setpoint=30.5 Temp=0 Valve pos=100 Battery=OK Mode=Manual
Valve Window masterbedroom Setpoint=30.5 Temp=0 Valve pos=100 Battery=OK Mode=Holiday
Valve Window child1 Setpoint=30.5 Temp=0 Valve pos=100 Battery=OK Mode=Auto
Valve Radiator links Setpoint=0 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator achter Setpoint=0 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator oprit Setpoint=0 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator kantoor Setpoint=12 Temp=0 Valve pos=0 Battery=OK Mode=Manual
Valve Window Child2 Setpoint=12 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator TV kamer Setpoint=12 Temp=0 Valve pos=0 Battery=OK Mode=Manual
Valve Radiator masterbedroom Setpoint=0 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Re: ELV Max! Heating control system
Posted: Thursday 26 May 2016 19:18
by Westcott
Hi Jorishp,
Thanks for running the code.
Questions -
What sort of device is 'Plug Adapter ketel'?
Do the device status setpoint values look correct?
Thanks!
Re: ELV Max! Heating control system
Posted: Thursday 26 May 2016 19:23
by jorishp
it is a wireless switch
With the MAX! Plug Adapter, electric radiators and boilers/
circulation pumps can be controlled via radio.
Electric radiators
With the MAX! Plug Adapter, electric radiators can be controlled
comfortably via the MAX! Software.
Individually configured temperature settings and week
programmes are sent via the MAX! Software to the MAX!
Wall Thermostat.
The MAX! Wall Thermostat measures the actual temperature
in the room and - depending on the desired setpoint
temperature - switches the MAX! Plug Adapter on and off.
Boilers/circulation pumps
In addition, with the MAX! Plug Adapter boilers/circulation
pumps can be switched on and off via the MAX! Software.
The MAX! Plug Adapter can be installed quickly and without
tools. After plugging in the device, it is immediately
ready to use.
Communication between MAX! components is bi-directional.
This ensures that the information sent reaches the
recipient
http://www.produktinfo.conrad.com/daten ... _de_en.pdf
Re: ELV Max! Heating control system
Posted: Friday 27 May 2016 0:24
by Meza
Got Lua and the latest script working finally thanks to the posts in this thread!
Here is the output:
Code: Select all
Rooms
-----
Study 12DD65
Kitchen 137CF7
Bedroom 2 1381EF
Bedroom 1 12DB15
Dining Room 12D91B
Living Room 12DD5A
Bedroom 3 12E33A
Landing 137D06
Devices
-------
Radiator 1 1381EF
Wall Thermostat 1 09B6F5
Eco Switch 1 0124FC
Radiator 1 137D06
Window Sensor 1 0AAE4B
Radiator 1 137D72
Radiator 1 12DD31
Radiator 1 12D91B
Radiator Thermostat 1 12DD5A
Radiator 1 12E33A
Radiator 1 12DD65
Kitchen - Patio door rad 137CF7
Radiator 2 12DB6C
Radiator 2 12DB15
En Suite Radiator 12DB6A
Living Room Thermostat 121397
Radiator 1 12DD40
Landing Thermostat 09AD40
Device status
-------------
Valve Radiator 1 Setpoint=9 Temp=15.4 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=4.5 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Kitchen - Patio door rad Setpoint=9 Temp=15.7 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator Thermostat 1 Setpoint=9 Temp=16.7 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=9 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Thermostat Living Room Thermostat Setpoint=9 Temp=16.7 Valve pos=-1 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=4.5 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Thermostat Landing Thermostat Setpoint=15 Temp=18.5 Valve pos=-1 Battery=OK Mode=Auto
Thermostat Eco Switch 1 Setpoint=15 Temp=18.5 Valve pos=-1 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=19 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=4.5 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Thermostat Wall Thermostat 1 Setpoint=19 Temp=19.1 Valve pos=-1 Battery=OK Mode=Auto
Valve En Suite Radiator Setpoint=19 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=15 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=9 Temp=16 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator 2 Setpoint=9 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator 2 Setpoint=19 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Valve Window Sensor 1 Setpoint=19 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Not sure why the Eco-Switch reports a temperature and set point.
The setpoints and temps seem right. Not sure about the value positions though. The above shows them all at 0, which was correct at the time.
I set one room thermostat to 30.5 degrees. Running your script again gives this for that room:
Code: Select all
Valve Radiator 1 Setpoint=30.5 Temp=19.1 Valve pos=100 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=4.5 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Thermostat Wall Thermostat 1 Setpoint=30.5 Temp=19.1 Valve pos=-1 Battery=OK Mode=Auto
Valve En Suite Radiator Setpoint=30.5 Temp=19.1 Valve pos=0 Battery=OK Mode=Auto
Valve Radiator 1 Setpoint=15 Temp=0 Valve pos=0 Battery=OK Mode=Auto
Re: ELV Max! Heating control system
Posted: Friday 27 May 2016 5:25
by blackdog65

it's so frustrating following this progress from Moscow. Can't wait to get back and have a play.
Re: ELV Max! Heating control system
Posted: Friday 27 May 2016 11:46
by mvzut
I have the script running inside Domoticz now, and it's updating my virtual devices. Works perfectly! I only had an error message in the log a couple of times, indicating that the script had been running for more than 10 seconds. Interesting note: this message came exactly at 18:00, 20:00, 22:00 and 0:00h. But since then no messages anymore.
Re: ELV Max! Heating control system
Posted: Friday 27 May 2016 12:10
by Westcott
The auto database backups happen on every hour.
This seems to stop any curl or socket action for over 10 seconds.
Re: ELV Max! Heating control system
Posted: Sunday 29 May 2016 19:31
by JerryZvW
Hi all,
I'm new to the whole domoticz thing and also to the Eq-3 max! System. I wantend to buy an Eq-3 set with a cube, and control it with domoticz. I'm still trying to figure out what thermostats I should pick. Type A, B or C (as mentioned earlier in this topic) I wantend to go for type B , but I think I understand now that as long as you use a Wall thermostat, the A type is just as good. (Since I need about 10 units, it'll save me around 90 euro's)
Am I correct in this assumption, or is it better to pick type B?
Thnx,
Jerry
Re: ELV Max! Heating control system
Posted: Monday 30 May 2016 2:31
by Meza
I bought 14 MAX! Basic TRVs and am happy with them. They seem to work fine with our without the room thermostats.
They seem slightly better for the UK market (TRVs bottom mounted) due to the angled screen position - you can still read it from above.
They don't seem too noisy, but I have nothing to compare them to.
https://cdn-reichelt.de/bilder/web/arti ... SIC_01.jpg
Sent from my PLK-L01 using Tapatalk
Re: ELV Max! Heating control system
Posted: Tuesday 31 May 2016 9:00
by mvzut
I also have the basic version, they are compact and work great. I read somewhere that they are also much more silent than the other versions. Moreover, you don't need the programming functionality of the top model anyway if you are using a Cube (and you have to, at least at the moment, if you are going to connect your system to Domoticz).
Re: ELV Max! Heating control system
Posted: Tuesday 31 May 2016 19:17
by JerryZvW
OK, thnx for the clarification.
I had a feeling, but comparing them online is somewhat tricky, I get mixed outcomes.
again, thnx,
Jerry
Re: ELV Max! Heating control system
Posted: Tuesday 31 May 2016 19:31
by Meza
I would not set your expectations too high for MAX. In general it is a good system but not without faults. It is cheap compared to Evo home however, and you could say you get what you pay for. It fits a need for the budget tinkerer, most likely Domoticz users!
It certainly doesn't have the WAF (wife acceptance factor) of Evo home.
Sent from my PLK-L01 using Tapatalk
ELV Max! Heating control system
Posted: Sunday 05 June 2016 22:57
by mvzut
We've had a few hot days here in the Netherlands, and this resulted in the discovery of a problem with the decoding of temperatures: When the temperature is above 25.5 degrees Celsius, it starts at zero again. So 26.3 degrees is displayed as 0.8 degrees.

Any idea how this could be solved? Is it an artefact of the decoding method and the libraries that are used for that?
I could of course solve this in a not-so-elegant way by adding something to my script like "if temp <5 then temp = temp + 25.5", but that would be more an "emergency fix". It would also give problems when the real temperature gets below 5 degrees or above 30.5 degrees.
Re: ELV Max! Heating control system
Posted: Monday 06 June 2016 0:13
by Westcott
Are there any other apps that show the temperature correctly?
The temp is returned as a 2 char hex number, with a max value of 0xff = 255.
The actual temp is that number in decimal, divided by 10, which gives the 25.5 that you noticed.
Perhaps we need to save a flag that shows if 25.5 has been reached.
I've started work on sending setpoints to devices.
So far it is possible to set the 'Manual' mode setpoint.
Re: ELV Max! Heating control system
Posted: Monday 06 June 2016 7:39
by mvzut
The ELV Max! iOS app shows the values correctly, and so does the web portal.
Cool that you already succeeded in sending manual setpoints! In principle, this could already be enough for a basic use scenario: with a virtual thermostat in Domoticz and a few lines of code, Domoticz can completely take over the automatic control. Maybe we could implement it in such a way that you can switch between Domoticz automatic control and ELV Max! automatic control.
Have you already figured out how to switch between manual and automatic mode?
Re: ELV Max! Heating control system
Posted: Monday 06 June 2016 12:08
by Westcott
Thanks, Mvzut.
The 'documentation' is a little hazy in this area. (That's my excuse anyway)
It seems the temperature is actually held in 4 hex chars.
I discovered this by leaving my test valve on a windowsill in the sun, and looking at the decoded hex string.
Can you make 2 small changes to your Lua code, please?
if (data_len == 13) then -- WallMountedThermostat (dev_type 3)
valve_pos = -1
s = hex:sub(17,18)
setpoint = tonumber(s,16) / 2
s = hex:sub(23,26)
temp = tonumber(s,16) / 10
dtype = "Thermostat"
elseif (data_len == 12) then -- HeatingThermostat (dev_type 1 or 2)
s = hex:sub(15,16)
valve_pos = tonumber(s,16)
s = hex:sub(17,18)
setpoint = tonumber(s,16) / 2
if (mode ~= 2) then
s = hex:sub(19,22)
temp = tonumber(s,16) / 10
else
temp = 0
end
dtype = "Valve "
end
P.s. Yes the valve can be set to any of the 4 modes - Auto, Manual, Vacation, Boost
Re: ELV Max! Heating control system
Posted: Tuesday 07 June 2016 7:24
by mvzut
Seems to work perfectly again after your code update, thanks!
Re: ELV Max! Heating control system
Posted: Tuesday 07 June 2016 11:47
by Westcott
You're welcome - thanks for testing.
Here's a function to send data.
Next I'll have to write something to save the connection between Domoticz device name, Max device name, Max device ID, and Max room number.
Code: Select all
function MaxCmdSend(id, room, mode, setpoint)
bits = setpoint * 2
smode = string.upper(mode)
if smode == 'MANUAL' then
bits = 64 + bits
elseif smode == 'BOOST' then
bits = 192 + bits
elseif smode == 'VACATION' then
bits = 128 + bits
end
hex = "000440000000"..id..room..string.format("%x",bits)
--print(bits, hex)
s = Basexx.from_hex(hex)
sendStr = Basexx.to_base64(s)
--print(sendStr)
i, status = tcp:send("s:"..sendStr.."\r\n");
if not i then
print("MAX TCP send failed - "..status)
return
else
--print("Sent OK")
end
end
-- Valve ID, roomnum, auto or manual or vacation or boost, setpoint
MaxCmdSend("1062EA", "01", "manual", 21.5)
Re: ELV Max! Heating control system
Posted: Tuesday 07 June 2016 23:05
by mvzut
mvzut wrote:Seems to work perfectly again after your code update, thanks!
Ouch, I was a bit too early to conclude that the updated code solved the problem. I initially forgot to take out the "if temp < 5 then temp = temp + 25.5 " line, so I failed to notice that the problem persists.

Does it work for you for temperatures higher than 25.5 degrees?
Re: ELV Max! Heating control system
Posted: Tuesday 07 June 2016 23:54
by Westcott
Yes, it works correctly for me, I tested up to 32.2 degrees!
Can you post that bit of your code, please?