I’m trying to read several values from my Remeha Elga Ace heatpump over modbus. I’ve got the basics working well, but there are a few parameters that are a bit more tricky. These parameters describe state by setting different bits in a single register. These parameters are described as having the type ‘ENUM8’ and UNSIGNED16 (not that this is not referred to as an unsigned 16-bit int).
I’m struggling how to get this working in Home Assistant as both ENUM8 and UNSIGNED16 are not listed amongst the supported data types. I have seen from other posts on the forum that the way to handle these registers containing multiple states is to essentially fetch the raw value to a sensor and then create a binary sensors for each individual value that is represented in the bitmasks of the raw sensor data.
But I am stuck defining the base data type of the sensor reading from modbus, and so far unable to get it to work. I have tried int8 for ENUM8 and uint16 for UNSIGNED16, in combination with a template sensor like {{ states('sensor.elga_heating_mode')|int|bitwise_and(1) > 0 }} (this example was intended to read the first value from an ENUM8 represented as an int8). I’m not getting sensible results back though.
Has any one any clue how to do this? Or a similar config to share?
Using this config, the last sensor becomes unavailable. The above two work and get integer values (I’ve seen 2 and 0) that (understandably) don’t correspond with the actual state. I just can’t seem to get the state out.
Hi mate
do you had any luck with this regisrer value? I got always or 0 or invalid value. Just tried all device_class (int16, uint16, float16, etc…). or maybe do you found this information (DHW tank temperature) from other register…
Sure Koen, you need the GTW-08 module installed (you can do this yourself or have an installer do it for you). That then connects to a simple Modbus → Wifi / Ethernet module which you can get off Aliexpress.
I can’t share my whole configuration.yaml, but here’s the relevant bit. Remember to change the IP of your modbus host and potentially other settings depending on how your Modbus bridge device is configured.
Thx, I’ve got it working, it was a pain in the … to get the modbus working, i’ve read about the twist in A+ and B-. That was one off the issues I ran in, and than the communicationpart with the modbus device.
Next page of the chapter is to make a nice looking interface for in HA.
Those IDs are random - they don’t matter as long as they are unique to your home assistant installation. It is an internal thing that helps HA identify each sensor.
You’ll need the history explorer card. Note that the degree day calculations are custom. If you’re interested in those I can share the config for that too – but it is getting quite complicated and I want to check if you’re interested in that.
Hi @bastiaanterhorst it looks like you’ve solved most of the things I need for my use case:
Actually in my manual it says GTW-30 instead of GTW-08 for the Elga Ace. Do you know whether the GTW-08 may be used instead of the GTW-30?
What I want to achieve is to replace the 0-10V output port of the ELGA Ace with a DAC output of an ESP32 Arduino. The 0-10V output actually does not work (properly), It should give a signal 0 to 10V proportional to the required power from the gas heater (Calenta). Unfortunately the output is 0V -OR- 10V. Which is useless. So I hope to read that signal through the Modbus interface.
Any idea whether that value is available??
The second implementation which I want to achieve is to write the current EPEX spot market price to the Elga Ace. This in turn should improve/ optimise the calculation in the Elga Ace if and when an how much energy should come from the gas heater instead of the heat pump. In this way I could optimize using the dynamic EPEX prices on the spot market.
Any idea whether this value is also available through the Modbus interface for writing?
So I do hope the GTW-08 would work also for me.
Could you please let me know which Modbus to Wifi gateway you are using? Is it - by chance - the RS485 to WiFi gateway from spotpear/ wavechare??
Which integration are you using for that one? From HACS? Could you share the configuration/ setup for this gateway?
Last not least could you share the documentation of the GTW-08 including the Modbus address table with me/us?