ÂPosted by: @leichatPosted by: @cathoderayDon't get me wrong, I am not for a moment suggesting that Nabu Casa can't make and sell something called a HAG. Al I am saying is that I don't think it is the right product for me. Horses for courses, forever.   Â
I think I need to read the entire thread to understand the context of the recent comments.
Are those that are enthusiastic about HA hoping to collaborate with you so that the ASHP data extraction work you have already accomplished is compiled into a library that's suitable for someone with HA integration authoring skills to reuse?Â
Yes, I suggested that many posts back, a client library written in python than can be used either on its own or as part of a HA integration.Â
I have my ASHP hooked up to HA via NodeRed, however it is not at all portable, hence the desire to translate learnings in to a client library and a HA integration that uses it.
The work I've done is of limited use to @cathoderay (and anyone else) because it's tightly coupled to NodeRed and HA. It's a proof of concept I'd planned to use as a baseline before starting on a client library and integration. The work that @cathoderay has done is of limited use because it's synchronous and will only work with Modbus RTU, not RTU over TCP. They seem to have an inherent disdain towards anything that touches HA, collaboration seems to be off the cards, much to the detriment of The Community.Â
Â
Posted by: @leichatAre those that are enthusiastic about HA hoping to collaborate with you so that the ASHP data extraction work you have already accomplished is compiled into a library that's suitable for someone with HA integration authoring skills to reuse?
I rather fear not, as it comes across as I see it that the HA aficionados see me as some sort of ill-disposed and delusional HA hater who they could not see a way to work with. The core point is horses for courses, and I am just not a horse for the HA course, and having said that, I have given reason for being of that view, and have put forwards alternatives. I still don't get why one person's view - that's all it is - on HA generates so much defensive and sometimes out-rightly hostile behaviour.
That said, I have no objection to my code being adapted to work with HA, in fact, for historical reasons (I started off with HA, and it is still on my system) I have on occasions done just that myself. HA's History Explorer card/add-on does produce pleasing charts, and here for example is a possibly interesting comparison of midea_ac_lan and modbus data:
Â
This shows the trailing 24 hour COP over last April, the last month the heating was on, with the top plot based on midea_ac_lan data (ie all done in HA), and the bottom plot based on the minimalmodbus csv data, read into HA using a file sensor. The 'calc' in the plot title after modbus means this is a calculated COP, based not on Midea total kWh values, but on modbus read amps x volts and flow rate x specific heat x delta t, meaning, apart from both coming from the wired controller, the collection and calculation methods are entirely different. They both go up and down at the same time, but mostly the calculated COP is higher than the midea_ac_lan based COP, and and the question is which, if either, is correct? Bear in mind that chart comes from a very early stage in my attempts at monitoring, and the heating hasn't been on since, which is why I want to wait until the heating is back on, to check and double check my code, before I go public with it.
Midea 14kW (for now...) ASHP heating both building and DHW
@cashback - thank you for a positive contribution. The limitations of the various solutions put forward to date (including mine) are frustrating, but I am hopeful that what I am working on will become a generic solution at least for heat pumps with a modbus RTU connection. At the moment, that includes Midea, Midea cloned and almost certainly Samsung heat pumps.
Put simply, my setup uses a small form factor PC connected to the heat pump via a wired modbus RTU connection, over which relatively short and simple python script collects data and writes them to CSV files, which can then be used to generate charts. If your heat pumps speaks modbus RTU, and you can tap into that, then there is a good chance my set up, after any necessary tweaks eg to address registers etc, will work. Not a solution for everyone, but hopefully it will be for some.
I should also mention that the Midea modbus setup allows the setting as well as getting of values, and in the fullness of time I shall be experimenting with this, in particular the use of an adaptive weather compensation curve, but the detail on that has been and will be covered in other threads.  Â
Midea 14kW (for now...) ASHP heating both building and DHW
Posted by: @cathoderaymy setup uses a small form factor PC connected to the heat pump via a wired modbus RTU connection, over which relatively short and simple python script collects data and writes them to CSV files, which can then be used to generate charts.
Excellent.
That's the same approach I'm using, albeit in a different area of energy technology - battery storage.
1: Collecting data like this will greatly add to the pool of knowledge regarding how the technology is actually operating, rather than what we think we've configured it to do!
2: Further sensors can be added to the Modbus wires to enhance the data-set in future
3: The CSV data can be re-visited when a fault manifests itself.
4: Graphical (chart) output is preferable.
I continue to be amazed how little useful information can be picked up from the IHDs we get supplied with our Smart Meters.
A chart could just as easily have been implemented using the same hardware, and would be far more useful to elderly consumers who grew up with analogue watches!
Save energy... recycle electrons!
Hi Everyone,
For those of you contemplating using Modbus RTU to communicate with your heat pump, you may find the following informative.
It is a long time since I was actively involved with Modbus, and then it was on an industrial system that probably followed the original Modicon mapping protocol more closely than may be the case with heat pump manufacturers.
Whilst it is possible to read data from a heat pump controller, and in some cases also write data to a heat pump controller, the main problem as I see it is knowing where this data is stored.
Modbus uses 16 bit registers to store data, which can be in the form of binary, integer (signed or unsigned) and floating point (again signed or unsigned).
Whilst the original Modbus Map assigns ranges of addresses to store the different data types, it does not specify where individual variables should be stored.
The Modbus Address for say ambient air temperature will probably vary from manufacturer to manufacturer. The starting point in reading such data must therefore start with obtaining a copy of the relevant Modbus Map, or if one cannot be found then reading each Modbus Address in turn and then trying to identify its contents.
Posted by: @derek-mThe starting point in reading such data must therefore start with obtaining a copy of the relevant Modbus Map, or if one cannot be found then reading each Modbus Address in turn and then trying to identify its contents.
These are well known and documented for Midea ASHPs. There's an official PDF linked to further back in this thread if memory serves.Â
Â
Posted by: @cashbackPosted by: @derek-mThe starting point in reading such data must therefore start with obtaining a copy of the relevant Modbus Map, or if one cannot be found then reading each Modbus Address in turn and then trying to identify its contents.
These are well known and documented for Midea ASHPs. There's an official PDF linked to further back in this thread if memory serves.Â
Â
Yes, I am aware. If my memory serves me well it is for a Chofu heat pump, of which Midea is a clone.
Â
Posted by: @transparent1: Collecting data like this will greatly add to the pool of knowledge regarding how the technology is actually operating, rather than what we think we've configured it to do!
2: Further sensors can be added to the Modbus wires to enhance the data-set in future
3: The CSV data can be re-visited when a fault manifests itself.
4: Graphical (chart) output is preferable.
I agree on all points. I have already done (2), adding a room temp (IAT) sensor, as the Midea one is in the wired controller, which in my case is in the airing cupboard, meaning it is not a reliable indicator of IAT in the main living rooms. Other advantages of csv data are that it is robust, it is very flexible about how it is used: in a spreadsheet, in a text editor, in python code, in dedicated charting software, whatever, and furthermore backs ups couldn't be easier, just copy the data file on a regular basis. The usefulness of charted output I particularly agree with, analogue representations are far easier for us humans to assimilate than the underlying digital data that the chart represents.
@derek-m - very minor correction, I believe Chofu is the clone (of Midea), not the other way round. I can also confirm my Midea wired controller came with a manual that has tables with the modbus register addresses, complete with typos and, more helpfully, any conversions factors needed eg if a one decimal place number is multiplied by 10 and sent as an integer, then it needs to be divided by 10 on receipt to get the true value. I seem to recall I have also seen images of similar tables for Samsung heat pumps. Â
Midea 14kW (for now...) ASHP heating both building and DHW
Thanks for correcting my memory loss, one of the pleasures of growing older. 🙄Â
If anyone has discovered Modbus Maps for other heat pumps, maybe they should post them, so that we can compare them for differences in layout.
Posted by: @derek-mIf anyone has discovered Modbus Maps for other heat pumps, maybe they should post them, so that we can compare them for differences in layout.
Excellent idea.
Midea 14kW (for now...) ASHP heating both building and DHW
Posted by: @derek-mIf anyone has discovered Modbus Maps for other heat pumps, maybe they should post them, so that we can compare them for differences in layout.
About an LG heat pump but hopefully of some use:
Â
- 22 Forums
- 2,036 Topics
- 44.4 K Posts
- 37 Online
- 3,240 Members
Join Us!
Trusted Installers
Struggling to find a reliable heat pump installer? A poor installation can lead to inefficiencies and high running costs. We now connect homeowners with top-rated installers who deliver quality work and excellent service.
✅ Verified, trusted & experienced installers
✅ Nationwide coverage expanding
✅ Special offers available
Latest Posts
-
RE: In the middle of an ASHP installation - a few questions (and issues)
@benson Strange no contract as it protects them more ...
By JamesPa , 12 minutes ago
-
RE: The Rise and Fall of Europe’s Most Generous Green Subsidy
@editor Attached images of external insulation. Think...
By Dwynwen , 23 minutes ago
-
RE: Air Source Heat Pump - Side Alley Suitability
@ad3628 I’ve seen loads of heat pumps successfully inst...
By Mars , 13 hours ago
-
RE: Hitachi Yutaki SCombi Heat Pump - Thermal Off's
@trebor12345 The Auto function is supposed to adapt au...
By Heatgeek , 15 hours ago
-
RE: The Great British Heat Pump Quiz
@allyfish thanks for the feedback and glad it was fun! ...
By Mars , 20 hours ago
-
RE: help sizing rads based on room by room heat loss
If its 1988W at DT 50, which is how most radiators are ...
By JamesPa , 1 day ago
-
RE: Career change – entering the world of heating and heat pumps
@editor Mars, thank you. That's along the routes I was ...
By Lakey , 1 day ago
-
@editor thanks Mars, it's a rare occasion I'm looking f...
By big_si , 1 day ago
-
RE: Efficiency Concerns on newly installed Mitsubishi Ecodan 8.5kW
@ashp-bobba and @jamespa - thank you both for all your ...
By CBrenewable , 2 days ago
-
Thanks both Some useful tips I’ll keep you informed ...
By Fingers , 2 days ago
-
Win one of five "Heat Pumps 101" Courses
Heat pumps are gaining traction in the UK, but between ...
By Mars , 2 days ago
-
RE: Agile: average import cost vs other tariffs?
@toodles thanks for the analysis. I'll be really intere...
By Old_Scientist , 2 days ago
-
RE: ASHP Ecodan L9 error - No Heating but Hot Water
@phoenix15 I'm no plumber so please don't take this as ...
By dnagre , 3 days ago
-
RE: Is this normal? Click of the DHW returning to space heating
@grantmethestrength Oh sorry to hear that, there should...
By ASHP-BOBBA , 3 days ago
-
@ashp-bobba TBH the ladies are rather disorganised, so ...
By Cathyem1 , 3 days ago
-
RE: Solar Power Output – Let’s Compare Generation Figures
And for those of us without an automatic irrigation sys...
By Majordennisbloodnok , 3 days ago
-
Logically, the lower frequency = more gentle, yes, but ...
By SUNandAIR , 3 days ago
-
RE: Ideal Logic ASHP - change from 55°C to 35°C Heating?
Good point. I’ll keep my eye on the manifold temperatur...
By Tomdad , 3 days ago
-
RE: How hard and expensive would it be to change panel and add battery?
@transparent It is a setting that Octopus make via the ...
By Toodles , 3 days ago