Joining the Renewable Heating Hub forums is completely free and only takes a minute. By registering you’ll be able to ask questions, join discussions, follow topics you’re interested in, bookmark useful threads and receive notifications when someone replies. Non-registered members also do not have access to our AI features. When choosing your username, please note that it cannot be changed later, so we recommend avoiding brand or product names. Before registering, please take a moment to read the Forum Rules & Terms of Use so we can keep the community helpful, respectful and informative for everyone. Thanks for joining!
Accessing and analysing data from your heat pump
Posted by: @derek-mCathodeRay managed to locate and extract some data from the Mideo controller and data stream.
Indeed I did, and I have documented most of my experiences to date here on this forum in considerable detail.
The bottom line for me - emphasis because others have chosen different routes, this really is a horses for courses thing - is that Home Assassin is a shortcut to incurable and probably terminal insanity. It is (IMHO) very over complicated, the code is a nightmare with a learning curve that makes the North Face of the Eiger look like a gentle ramp.
The python midea_ac_lan package (and other similar ones) manage to snoop on the Midea app traffic but again it is painfully complicated, and only limited data can be collected. Part of the clue is in the name, it is not chiefly aimed at AHSPs, but rather at air conditioners, but there is some overlap. Midea also encrypt the data which doesn't help...
Midea (and Samsung and maybe others) make available a modbus connection in their controllers, and in my experience, for me, this by far the best way to collect and analyse modbus enabled heat pump data. At a practical level, you need to be able to strip thin wires without shredding them and use a screwdriver, and you need to be comfortable with fairly basic python code, plus some form of charting software - the data ends up in a csv file which you can do whatever you want with.
I'm waiting for the heating season to start at which point I will double check my system works and then document what I did here.
The other possibility, yet to be tested in heat so to speak, is not just monitoring the heat pump over modbus, but also controlling it. Again, I will be working on this over the next few months, and will report back findings here.
Midea 14kW (for now...) ASHP heating both building and DHW
@cathoderay Thank you for your efforts.
If we could get the modbus data bridged to MQTT, the Home Assistant integration would probably then be a simple and familiar step for many of the HA community developers. Wish I had more time to learn the basics and have a play myself.
Another option for HA might be to use the File integration to import the data from the CSVs you have been able to create.
File - Home Assistant (home-assistant.io)
Their example only shows how to extract a single value per row out to an entity. Ideally we would be looking to extract multiple values for date, energy consumed, etc.
Posted by: @leichatthe Home Assistant integration would probably then be a simple and familiar step for many of the HA community developers. Wish I had more time to learn the basics
This is the problem: HA developers and a few other understand HA, Joe Bloggs, I and many others don't. Another PITA for me about HA is that because it is a work in progress, the developers have given unto themselves a licence freely to make breaking changes in the code. It drove me (and judging by their forum, many others), nuts.
I did use that file sensor, and I think I mentioned it recently, but why go to all the trouble of doing that in HA? And somehow get round the fact it can only extract the last row - can be done by making sure each reading gets into HAs database, at least until the HA database crashes and burns. It defaults to a sqlite database (and no I am not going to add another painfully complicated 'better' database onto my system) and may or may not be recoverable, probably not. Why not do the charting from the csv file itself? Freely available spreadsheets can do the charting just fine in a few clicks, and I've also posted various examples using highcharts.js, and more recently have found plotly in python works well, Here's a proof of concept screen grab I posted recently of an interactive plotly based chart:
That's the out of the box version, without any tweaking, reading directly from my midea data csv file, only one variable etc, but the point is, it just works. HA, on the other hand, often doesn't (see posts a-plenty on their forum). On the plotly chart, you can zoom in and out at will, select various time ranges (see top left buttons, they are customisable) and takes as many snapshots as you want. Guess how many lines of code were needed?
The code that produced that chart:
import plotly.express as px
import pandas as pd
df = pd.read_csv('mideadata.csv')
fig = px.line(df, x='datetime', y='ambient', title='Ambient Temp with Range Slider and Selectors')
fig.update_xaxes(
rangeslider_visible=True,
rangeselector=dict(
buttons=list([
dict(count=1, label="1m", step="month", stepmode="backward"),
dict(count=6, label="6m", step="month", stepmode="backward"),
dict(count=1, label="YTD", step="year", stepmode="todate"),
dict(count=1, label="1y", step="year", stepmode="backward"),
dict(step="all")
])
)
)
fig.show()
In short, load the necessary modules, load the data, make a line chart, set some custom things and then show the chart. Even I can understand that!
Once you get to know python (or if you already know it), you will appreciate that getting something into a pandas dataframe (that's what's happening in line 3) is extremely powerful. I think of it as a spreadsheet in memory that you can do almost anything with.
Midea 14kW (for now...) ASHP heating both building and DHW
- 26 Forums
- 2,618 Topics
- 61.1 K Posts
- 916 Online
- 6,993 Members
Join Us!
Worth Watching
Latest Posts
-
RE: Indevolt Batteries UK Support & Info Thread
Thanks @editor , @indevolt-uk Subject to any comments ...
By JamesPa , 7 hours ago
-
RE: Share Your Experiences with Heat Pump Manufacturer Support
@seoras Sorry to hear that. I found Vaillant very help...
By JamesPa , 8 hours ago
-
The Watchdog That Watched and Waited
On 9 January 2026, Consumer Energy Solutions collapsed ...
By Mars , 11 hours ago
-
RE: GSHP Kaput After 16 Years: New Compressor or Switch to ASHP? Advice Welcome
Cool Energy in Grimsby sell ground source heat pumps an...
By DerekDeLeon , 12 hours ago
-
RE: Valliant Heat Pump Settings
Thats arguably a sign of a good installer - they unders...
By JamesPa , 13 hours ago
-
RE: Electricity price predictions
Well, we have so many cases where rain water mixes with...
By Batpred , 14 hours ago
-
RE: Two heating zones to one zone
@profzarkov They arent obviously wrong, but the only...
By JamesPa , 16 hours ago
-
RE: Towns water feed to air source heat pump system
The DHW circuit cant be separated (well it could, you c...
By JamesPa , 16 hours ago
-
Solis AC-coupled 3kW storage inverter
Solis AC-coupled 3kW storage inverterPylontech batterie...
By MartinRobinson , 22 hours ago
-
RE: My NIBE ASHP Nightmare: No Commissioning, High Bills and a Hostile Installer
As @transparent has observed above, this is not bad, an...
By cathodeRay , 23 hours ago
-
RE: The Grid Says Yes.. Until It Doesn’t: Why Britain's Net Zero Push is Stalling at the Plug Socket
As I was reading this article Mars, I was thinking that...
By Toodles , 2 days ago
-
RE: Tell us about your Solar (PV) setup
Installed in May 2011: 16*Sharp 245 W monocrystalline p...
By txmartyn , 2 days ago
-
-
RE: Say hello and introduce yourself
That doesn't sound 'right' to me. The national Smart ...
By Transparent , 3 days ago
-
RE: Growatt battery disconnected
I doubt this will happen, but I will try and suggest it...
By Eliuccio , 3 days ago
-
Understood. That's why I decided from the outset on a ...
By JamesPa , 3 days ago
-
RE: My experience with 3 heat pump surveys: Heat Geek, British Gas & Octopus
On the litigation, I would not go there and definitely ...
By Batpred , 3 days ago
-
RE: Recommended home battery inverters + regulatory matters - help requested
I suppose if your pv inverter packs up, you have a plan...
By Batpred , 4 days ago
-
RE: New Vaillant aroTherm Plus in black - When will it come to the UK?
Firstly check you are using sound power not sound press...
By JamesPa , 4 days ago
-
That’s the solar up and running, I don’t think it’s the...
By David999 , 4 days ago
-
RE: Seeking ideas / information / commiseration - Pure Drive
I agree with @colinc that you can reuse some of it. A s...
By Batpred , 4 days ago
-
RE: Solar Power Output – Let’s Compare Generation Figures
@toodles Im trying me best to ignore orangeman, I figur...
By Papahuhu , 5 days ago
-
@toodles That’s way better per kWp performance than our...
By Papahuhu , 6 days ago




