Python plugin: ELV/EQ-3 MAX!

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
DarkG
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!

Post by DarkG »

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.
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
mvzut
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!

Post by mvzut »

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
DarkG
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!

Post by DarkG »

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.
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
mvzut
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!

Post by mvzut »

DarkG 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.
Great! By the way, interesting JSON command, didn't know about this one. Personally I would probably use

Code: Select all

127.0.0.1:8080/json.htm?type=command&param=udevice&idx=74&nvalue=0&svalue=25
but that has the disadvantage that a timer can override it again. If you don't have Domoticz timers on the thermostats created by the plugin, then either should work fine.

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
Freekers
Posts: 19
Joined: Friday 20 October 2017 17:36
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python plugin: ELV/EQ-3 MAX!

Post by Freekers »

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:

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? 
I've double checked; Accept new Hardware Devices' is enabled and the devices is not in the Devices list.

Thank you :)

Kind regards.
mvzut
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!

Post by mvzut »

Freekers 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:

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? 
I've double checked; Accept new Hardware Devices' is enabled and the devices is not in the Devices list.

Thank you :)

Kind regards.
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 either Image. So I think I'm just going to submit it.

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
DarkG
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!

Post by DarkG »

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?
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
mvzut
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!

Post by mvzut »

DarkG wrote: Thursday 08 November 2018 13:13 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?
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
Maybe you can already test this one.
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
DarkG
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!

Post by DarkG »

Thank you, it works.
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
Freekers
Posts: 19
Joined: Friday 20 October 2017 17:36
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python plugin: ELV/EQ-3 MAX!

Post by Freekers »

mvzut wrote: Wednesday 07 November 2018 22:50 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!
Thanks for the quick fix, it works!!
mvzut
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!

Post by mvzut »

mvzut wrote: Wednesday 07 November 2018 22:50
Freekers wrote:Have you considered adding your plugin to the Plugin Manager for easy installation & updating :) ?
viewtopic.php?t=22339
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 either Image. So I think I'm just going to submit it.
I have submitted a pull request to add the EQ-3-MAX! plugin to the Plugin Manager, I'll keep you posted.
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
mvzut
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!

Post by mvzut »

mvzut wrote: Wednesday 07 November 2018 22:50 I have submitted a pull request to add the EQ-3-MAX! plugin to the Plugin Manager, I'll keep you posted.
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
maxtrash
Posts: 106
Joined: Tuesday 06 August 2013 1:31
Target OS: -
Domoticz version:
Contact:

Re: Python plugin: ELV/EQ-3 MAX!

Post by maxtrash »

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!
laulau
Posts: 2
Joined: Saturday 27 September 2014 10:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python plugin: ELV/EQ-3 MAX!

Post by laulau »

Hi,
What is the best way to update the plugin?
Thanks
Laurent
mvzut
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!

Post by mvzut »

On a Raspberry Pi, you can update by typing

Code: Select all

git reset --hard
git pull
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.
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
mvzut
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!

Post by mvzut »

Hi all,

It's update time again ;-). I have made the following changes:
  • 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!
Don't forget to revisit the plugin's configuration page after updating, check settings and click on "Update". It will probably throw some errors until this step is done, since the meaning of the parameters was changed.
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
Freekers
Posts: 19
Joined: Friday 20 October 2017 17:36
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python plugin: ELV/EQ-3 MAX!

Post by Freekers »

mvzut wrote: Friday 09 November 2018 10:27
mvzut wrote: Wednesday 07 November 2018 22:50 I have submitted a pull request to add the EQ-3-MAX! plugin to the Plugin Manager, I'll keep you posted.
It has been added!
Thank you very much!
mvzut
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!

Post by mvzut »

Thegazsta wrote: Sunday 04 November 2018 19:35 Thanks Mvzut, if the temperature is set above 8c I don't get the error either! I can work around this now.
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
haajee
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!

Post by haajee »

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?
mvzut
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!

Post by mvzut »

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?
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).
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest