ELV Max! Heating control system

For heating/cooling related questions in Domoticz

Moderator: leecollings

jorishp

Re: ELV Max! Heating control system

Post 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

User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: ELV Max! Heating control system

Post 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!
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
jorishp

Re: ELV Max! Heating control system

Post 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
Meza
Posts: 18
Joined: Friday 25 December 2015 9:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ELV Max! Heating control system

Post 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
User avatar
blackdog65
Posts: 311
Joined: Tuesday 17 June 2014 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Norfolk, UK
Contact:

Re: ELV Max! Heating control system

Post by blackdog65 »

:x it's so frustrating following this progress from Moscow. Can't wait to get back and have a play.
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
mvzut
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

Post 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.
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
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: ELV Max! Heating control system

Post by Westcott »

The auto database backups happen on every hour.
This seems to stop any curl or socket action for over 10 seconds.
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
JerryZvW
Posts: 7
Joined: Sunday 29 May 2016 19:23
Target OS: Linux
Domoticz version:
Contact:

Re: ELV Max! Heating control system

Post 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
Meza
Posts: 18
Joined: Friday 25 December 2015 9:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ELV Max! Heating control system

Post 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
mvzut
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

Post 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).
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
JerryZvW
Posts: 7
Joined: Sunday 29 May 2016 19:23
Target OS: Linux
Domoticz version:
Contact:

Re: ELV Max! Heating control system

Post 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
Meza
Posts: 18
Joined: Friday 25 December 2015 9:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ELV Max! Heating control system

Post 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
mvzut
Posts: 443
Joined: Thursday 12 November 2015 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

ELV Max! Heating control system

Post 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. Image
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.
Last edited by mvzut on Sunday 05 June 2016 22:57, edited 1 time in total.
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
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: ELV Max! Heating control system

Post 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.
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
mvzut
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

Post 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?
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
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: ELV Max! Heating control system

Post 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
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
mvzut
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

Post by mvzut »

Seems to work perfectly again after your code update, thanks!
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
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: ELV Max! Heating control system

Post 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)
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
mvzut
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

Post 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.
Image
Does it work for you for temperatures higher than 25.5 degrees?
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
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: ELV Max! Heating control system

Post by Westcott »

Yes, it works correctly for me, I tested up to 32.2 degrees!
Can you post that bit of your code, please?
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest