Python plugin: ELV/EQ-3 MAX!
Moderator: leecollings
-
- Posts: 89
- Joined: Friday 15 September 2017 18:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10076
- Location: Germany
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
Hello again, the solution with a virtual Thermostat looks fine.
I created now a virtual Thermostat for my Bathroom. Will see what happens.
Also I created a dummy switch to set the setpoint via JSON.
The Virtual switch works and set the setpoint as I like over JSON. Now I will look how the Valve will change.
I created now a virtual Thermostat for my Bathroom. Will see what happens.
Also I created a dummy switch to set the setpoint via JSON.
The Virtual switch works and set the setpoint as I like over JSON. Now I will look how the Valve will change.
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
Cool that you're actually testing it! It was just an idea that I got based on your question, never tested it myself. If it works well, let us know, more people might be interested to use this as an alternative control solution (including myself).
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: 89
- Joined: Friday 15 September 2017 18:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10076
- Location: Germany
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
Great news, it works very well.
You have to create a (hidden)
dummy device switch for each valve.
Use this Json URL to set SetPoint
http://127.0.0.1:8080/json.htm?type=set ... &used=true
Just change the idx to IDX from your Thermostat.
My Bedroom has a Temp+Humidity Sensor. Further I will look how I can create other Virtual Thermostat with this Sensor.
In my Bathroom the Tempsensor is a 18b20 which gives only the temp.
You have to create a (hidden)
dummy device switch for each valve.
Use this Json URL to set SetPoint
http://127.0.0.1:8080/json.htm?type=set ... &used=true
Just change the idx to IDX from your Thermostat.
My Bedroom has a Temp+Humidity Sensor. Further I will look how I can create other Virtual Thermostat with this Sensor.
In my Bathroom the Tempsensor is a 18b20 which gives only the temp.
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Python plugin: ELV/EQ-3 MAX!
Great! By the way, interesting JSON command, didn't know about this one. Personally I would probably useDarkG wrote: ↑Wednesday 07 November 2018 18:01 Great news, it works very well.
You have to create a (hidden)
dummy device switch for each valve.
Use this Json URL to set SetPoint
http://127.0.0.1:8080/json.htm?type=set ... &used=true
Just change the idx to IDX from your Thermostat.
My Bedroom has a Temp+Humidity Sensor. Further I will look how I can create other Virtual Thermostat with this Sensor.
In my Bathroom the Tempsensor is a 18b20 which gives only the temp.
Code: Select all
127.0.0.1:8080/json.htm?type=command¶m=udevice&idx=74&nvalue=0&svalue=25
Pity that the Smart Virtual Thermostat doesn't support temperature + humidity devices. But you can create a (virtual) temperature-only sensor from a combined device with a time-based Lua script. If you need help with this let me know.
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: 19
- Joined: Friday 20 October 2017 17:36
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
Have you considered adding your plugin to the Plugin Manager for easy installation & updating
?
viewtopic.php?t=22339
Also, I think there is a bug with regards to the code
Previously, I've set to delete unwanted devices. However, afterwards I changed this back to not delete unwanted devices, but now Domoticz does not want to re-create the deleted switch anymore. It throws this error:
I've double checked; Accept new Hardware Devices' is enabled and the devices is not in the Devices list.
Thank you
Kind regards.

viewtopic.php?t=22339
Also, I think there is a bug with regards to the code
Previously, I've set to delete unwanted devices. However, afterwards I changed this back to not delete unwanted devices, but now Domoticz does not want to re-create the deleted switch anymore. It throws this error:
Code: Select all
2018-11-07 20:04:06.316 Error: (MAXCube) Device creation failed, Hardware/Unit combination (9:3) already exists in Domoticz.
2018-11-07 20:04:06.316 Error: (MAXCube) Device 'MAXCube - BadkamerRadiator - Mode' could not be created. Is 'Accept new Hardware Devices' enabled under Settings?
Thank you

Kind regards.
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
I have thought about adding it to the Plugin Manager, but wasn't sure if this was really necessary because there are probably not many users of MAX! hardware. However, it seems fairly easy to do, and it doesn't hurt eitherFreekers wrote:Have you considered adding your plugin to the Plugin Manager for easy installation & updating?
viewtopic.php?t=22339
Also, I think there is a bug with regards to the code
Previously, I've set to delete unwanted devices. However, afterwards I changed this back to not delete unwanted devices, but now Domoticz does not want to re-create the deleted switch anymore. It throws this error:I've double checked; Accept new Hardware Devices' is enabled and the devices is not in the Devices list.Code: Select all
2018-11-07 20:04:06.316 Error: (MAXCube) Device creation failed, Hardware/Unit combination (9:3) already exists in Domoticz. 2018-11-07 20:04:06.316 Error: (MAXCube) Device 'MAXCube - BadkamerRadiator - Mode' could not be created. Is 'Accept new Hardware Devices' enabled under Settings?
Thank you![]()
Kind regards.

UPDATE:
I have been able to recreate your bug, it was related to the internal device numbering logic. It should now be resolved (see Github). Thanks for finding 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: 89
- Joined: Friday 15 September 2017 18:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10076
- Location: Germany
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
Good morning everyone.
@mvzut
I´ve looked for some script to split Temp/hume on DHT11. But nothing worked. Do you have a working script for this?
@mvzut
I´ve looked for some script to split Temp/hume on DHT11. But nothing worked. Do you have a working script for this?
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
I am not able to test at this moment, but something like this should work (make it a device-based script):
Code: Select all
commandArray = {}
source = 'Sensor A' -- name of temperature + humidity sensor
target = 'Sensor B' -- name of dummy temperature-only sensor
if devicechanged[source] then
commandArray['UpdateDevice'] = otherdevices_idx[target]..'|0|'..otherdevices_svalues[source]:match("([^;]+);")
end
return commandArray
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: 89
- Joined: Friday 15 September 2017 18:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10076
- Location: Germany
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
Thank you, it works.
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
I have submitted a pull request to add the EQ-3-MAX! plugin to the Plugin Manager, I'll keep you posted.mvzut wrote: ↑Wednesday 07 November 2018 22:50I have thought about adding it to the Plugin Manager, but wasn't sure if this was really necessary because there are probably not many users of MAX! hardware. However, it seems fairly easy to do, and it doesn't hurt eitherFreekers wrote:Have you considered adding your plugin to the Plugin Manager for easy installation & updating?
viewtopic.php?t=22339. So I think I'm just going to submit it.
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: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
It has been added!
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
Re: Python plugin: ELV/EQ-3 MAX!
had to reinstall my max stuff because of the winter coming and an earlier rebuilt of my rpi. I have to say congratulations with the new plugin! Works like a charm and a big improvement over the LUA-stuff.
I am now trying to get it work as good as possible with my google home but that will be more for the controlicz related.
Thanks!
I am now trying to get it work as good as possible with my google home but that will be more for the controlicz related.
Thanks!
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Python plugin: ELV/EQ-3 MAX!
On a Raspberry Pi, you can update by typing
in the folder where you placed the plugin (e.g. ~/domoticz/plugins/MaxCube/).
Or you can install the plugin via the Python Plugin Manager (which is in itself a Python plugin). It will then be updated automatically.
Code: Select all
git reset --hard
git pull
Or you can install the plugin via the Python Plugin Manager (which is in itself a Python plugin). It will then be updated automatically.
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: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Python plugin: ELV/EQ-3 MAX!
Hi all,
It's update time again
. I have made the following changes:
It's update time again

- Made the minimum valve level for controlling the heat demand switch configurable. I noticed some people wanted to tweak this value to avoid too "nervous" switching of their boiler. I had to sacrifice one other parameter for this, I chose to remove the "Delete unwanted devices" option. It will now always delete devices that you don't want.
- Made some small modifications to the logging, to mimic the logging format of Domoticz internal hardware updates
- Did some code cleanup, making it slightly more efficient
- Removed the detailed explanation of the features from the plugin's configuration screen, since this did not render very well in some themes. All necessary information about installation and configuration is now available on the Github README page (https://github.com/mvzut/maxcube-Domoticz-plugin)
- Added a check if value has really changed when writing new setpoints or modes to the thermostats. This may help to reduce "EQ-3 hardware (..) thread seems to have ended unexpectedly" errors when changing many setpoints at the same time (e.g. from a script). Thanks michass for pointing this out!
Last edited by mvzut on Tuesday 13 November 2018 12:10, edited 5 times 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
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
User Umberto found what caused the problem that you could not set thermostats below 8 degrees in Auto mode, it was a small bug in the API. A small modification was made in the code on Github, solving the issue.
Thanks Umberto for your help!
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: 11
- Joined: Tuesday 30 October 2018 17:31
- Target OS: Linux
- Domoticz version: V4.10149
- Location: the Netherlands
- Contact:
Re: Python plugin: ELV/EQ-3 MAX!
Maybe a really stupid question. But what is the correct way to make a daily program? Can i make the schedule in Domoticz of should i use the 'Max local location' to make a basic program?
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Python plugin: ELV/EQ-3 MAX!
Both solutions are fine. I personally do it in Domoticz, but if you really like the scheduling function of the MAX app, then go ahead and do it there. Domoticz will simply follow the new setpoint whenever it has changed by MAX's own program. As an added bonus, you can then also change between auto and manual modes (using the mode switch). But personally I prefer to have all my logic/scripts/programs as much as possible in one location (which is Domoticz for me).haajee wrote:Maybe a really stupid question. But what is the correct way to make a daily program? Can i make the schedule in Domoticz of should i use the 'Max local location' to make a basic program?
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
Who is online
Users browsing this forum: No registered users and 1 guest