Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has 23.3 stopped my heat pump running properly? - 5kW Arotherm Plus #1205

Closed
zarch1972 opened this issue Feb 25, 2024 · 41 comments
Closed

Has 23.3 stopped my heat pump running properly? - 5kW Arotherm Plus #1205

zarch1972 opened this issue Feb 25, 2024 · 41 comments

Comments

@zarch1972
Copy link

zarch1972 commented Feb 25, 2024

Description

Did ebusd break my hot water runs? (and heating, see later comment)

I have been running an older version of ebusd (23.1) for about a year.
Coupled with occasional updates of Jones config files.

decided to upgrade everything.

I upgraded the core ebusd to 23.3 and the Jones files to the latest
https://github.com/jonesPD/ebusd-configuration

Since those upgrades my hot water runs started to go wrong.

Here is a trace from my Open Energy Monitor heat meter monitoring.

image

Actual behavior

You can see wobbles in the hot water runs. Drops etc.

Is there too much polling going on in this new version?
Putting too much pressure on the Arotherm controller?

Just guessing really.

Expected behavior

Yesterday afternoon I stopped the ebusd service on the Pi and last night run was rock solid again.

So too much coincidence that I upgraded on Tuesday and things started going wrong.
Then I shut it down Saturday and hot water runs were okay again.

13:03 yesterday was a time when it dropped out. see log below.

ebusd version

23.3

ebusd arguments

EBUSD_OPTS="--scanconfig=full --configpath=/home/mick/jones/ebusd-configuration/ebusd-2.1.x/en -d ens:/dev/ttyAMA0 --latency=60 --loglevel=debug --mqtthost=carbone.lan --mqttport=1883 --mqttint=/etc/ebusd/mqtt-hassio.cfg --mqttjson --mqttvar=filter-direction=r|u|^w"

Operating system

Debian 12 (Bookworm) / Ubuntu 22-23 / Raspberry Pi OS 12 (including lite)

CPU architecture

x64

Dockerized

None

Hardware interface

Adapter v3 RPi

Related integration

No response

Logs

2024-02-24 00:13:03.613 [bus debug] ERR: read timeout during receive command ACK, switching to skip
2024-02-24 00:13:04.011 [network debug] dead connection removed - 0
2024-02-24 00:13:04.364 [bus debug] ERR: read timeout during receive command ACK, switching to skip
2024-02-24 00:13:05.115 [bus debug] ERR: read timeout during receive command ACK, switching to skip
2024-02-24 00:13:05.115 [bus info] poll cmd: 3176b51405052903ffff

@JonesGW-MGD
Copy link

JonesGW-MGD commented Feb 25, 2024

It seems some other heat pump users have experienced other erratic behaviour very recently - may or may not be related. In their cases, I believe the the heat pump would cycle on and off. #1203 causing a fall in flow temperature over a relatively short period of time.

They found the issue when they started to use the repo 08.hmu.csv (which has had some recent commits). Your scenario may be different if you are using a fork of these but maybe the Jones files had had the new changes incorporated too? Reverting to older files, or setting --readonly appear to return to stable operation. Version of ebusd was not discussed in their thread.

Also did you do your refresh of the Jones forked files longer than two days ago? They have made a new commit within the last two days - and it says:

Removed ImmersionHeater related registers in 08.hmu.csv to avoid possible instability issues indicated by some

It's just a thought...

@stevebirch
Copy link

stevebirch commented Feb 25, 2024

Interesting - I have also been seeing strange hot water behaviour, and using ebusd almost since day one of my Arotherm 5K installation a couple of months ago.

Thought it was maybe a Vaillant problem, maybe due to me not using the extra controller (Sensoconfort). I'm just operating the basic controller from HomeAssistant via ebusd.

As well as unexpected drop outs of water heating (initially assumed it was defrosting but now milder), the worst aspect is stopping the compressor, but keeping the pump running in water heating mode, causing the tank to cool significantly as heat is extracted to the external pipes and unit. I was going to put a rule in HA to switch off water heating when this was detected!

I'm still on 23.2 so don't think 23.3 is to blame. but I'm using config based on john30/ebusd-configuration#377 from rmalbrecht as this seemed to work better for me than JonesPD at the time.

I also changed it to poll pretty frequently which maybe made this worse.

Was about to try latest from rmalbrecht and maybe JonesPD to see the latest state of play.

I'm pleased though its hopefully not a problem with the Arotherm itself. I don't have external heat sensors etc so hard to log behaviour without ebusd.

Fingers crossed its something like polling ImmersionHeater registers as mentioned by @JonesGW-MGD

@JonesGW-MGD
Copy link

JonesGW-MGD commented Feb 25, 2024

@stevebirch - hopefully you get the bottom of this! Interesting you are still on 23.2 as helps maybe narrow the issue? (Of course doesn't rule out @zarch1972 has a different issue..)

@zarch1972
Copy link
Author

Thanks for the replies.
To add, it's not only on hot water that there were problems. But heating also.

You can see all these off/on cycles here. These are causing by something to do with ebusd i'm sure.

This was Thursday with ebusd running. No, they aren't defrosts, it was too warm outside for that and you don't see the flow/return flip-flopping here which it does when defrosting.

image

And this is yesterday with ebusd switched off. This is how my system should run. Long and slow with no stop/starts.

image

@zarch1972 zarch1972 changed the title Has 23.3 broke my hot water runs - 5kW Arotherm Plus Has 23.3 stopped my heat pump running properly? - 5kW Arotherm Plus Feb 26, 2024
@xUniverse
Copy link

i have had the same phenomena since friday lunchtime.

I deactivated the EBUS today and then everything is running normally again, before that the compressor went off and on every 5 minutes

Bildschirmfoto 2024-02-26 um 19 04 12

@jayis007
Copy link

Same issue for me, been running for a year no issues but after updating HP cycling started. I am running docker image as well. As soon as I start the docker it starts cycling about 15 mins. I have stopped the image cycling stops. So it's not a hardware issue

Can anyone confirm what older image is working?

@zarch1972
Copy link
Author

Glad to see it is not just me.

Can anyone confirm what older image is working?

I was running 23.1 with no problems prior to upgrading @jayis007

@jayis007
Copy link

Just tried v23.3 to see if this makes any difference, it hasn't made any difference. ASHP Still bouncing

image

@KnatterKnilch
Copy link

KnatterKnilch commented Feb 27, 2024

excatly the same behavior here (already discussed it a bit over at #1203 )
except for the fact that it's not depending on the eBusd version (using only 23.3 here) but the version of the configuration used (08.hmu.csv)

Heating System here: AroTherm Plus VWL 75/6 + UniTower Plus VIH QW + senso comfort VC730 + sensoNet VR921

What I was able to find out until now is:

  1. Start with new configuration (08.hmu.csv) 9909b3a AND Home Assistant integration (--mqttint): Heatpump On/off cycling ~5min
    Log: current_08hmu.log

  2. Start with configuration one commit older ceee6a0 AND Home Assistant integration (--mqttint): HP working as expected
    Log: old_08hmu.log

  3. Start with new configuration (08.hmu.csv) 9909b3a WITHOUT Home Assistant integration : HP working as expected
    Log: current_woHAOS_08hmu.log

It's got something to do with the interaction between HA and ebusd. Maybe HA is triggering the polling of some parameters... ?

@pulquero
Copy link

pulquero commented Feb 27, 2024

The following work-around seems to stop the cycling for me:
replace w, with #w, at start of lines
replace *w, with #*w, at start of lines

Basically, just comment out the new w,,ReadXXXXX lines.

@jayis007
Copy link

Is that a config change? Have you got these locally. Can you not check these files in?

@pulquero
Copy link

Yes, to 08.hmu.csv, example diff: john30/ebusd-configuration@122e82f. Local files. I'm also doing limited polling over mqtt using /get (4 topics, 10 second gap between each) and that seems to work fine too.

@jayis007
Copy link

I have pulled the latest, commented out the writes uploaded the config files to a website using --configpath=https://xgility.eu/ebusd-2.1.x/en but giving an error saying ERR: Element not found. I have even copied the config to local path but it's still an issue in home assistant docker way --scanconfig=/share/ebusd-2.1.x/en

I can confirm the path is correct and I can get to file ok

docker run --name=ebusd --network hassio --rm -p 8888 john30/ebusd --scanconfig -d 192.168.0.139:3333 --configpath=https://xgility.eu/ebusd-2.1.x/en --latency=10 --mqttport=1883 --mqtthost=addon_core_mosquitto --mqttuser=mqtt --mqttpass=Locallogin --mqttint=/etc/ebusd/mqtt-hassio.cfg --mqttjson

@pulquero
Copy link

Log lines before and after

@john30
Copy link
Owner

john30 commented Feb 29, 2024

could someone please go ahead and clearly determine whether it is related to ebusd update or csvs update? I'm pretty sure this has nothing to do with the ebusd version 23.3. digging around with combinations of the one and the other update without coming to a conclusion on either side will not bring this forward.

funny to mention a foreign repository and filing a bug here though ;)

@jayis007
Copy link

jayis007 commented Feb 29, 2024 via email

@pulquero
Copy link

pulquero commented Mar 1, 2024

Looks like I'm still encountering issues. The tell-tell sign is the heat pump stops even though the energy integral is negative. I don't think there is any reason for this to happen under normal circumstances, and as soon as I stop ebusd it starts-up again. I'm not sure this is purely a CSV issue, as my modified CSV has no 'w' lines, and surely the addition of some new 'r' lines shouldn't result in such behaviour?? Unfortunately, I'm not sure if this problem existed before the recent CSV changes as I wasn't paying such detailed attention to heat pump behaviour as I am now. Also, I'm running 23.2.3. I'm also unclear at this stage, whether the act of polling triggers the issue. I'm also under the impression that the issue isn't triggered immediately, but after some time.

@john30
Copy link
Owner

john30 commented Mar 1, 2024

I've reverted john30/ebusd-configuration#316 for the time being. looking at it more closely leaves quite some questions...
please check if this eases the situation described here

@pulquero
Copy link

pulquero commented Mar 2, 2024

Done some more testing today to try to pin down the issue. In read only mode, looks good. Turn off read only mode, end up with large -ve integral and pump off. Now, there are some basic things I dont understand. As I understand it, the only write should be to auto discover the config. But in the log I see send poll update messages for things that dont have auto poll enabled. Maybe I misunderstand the log mesg?? The other thing I dont get is if I physically go to the live monitor screen, it doesn't seem ebusd sees any of these messages. Does live monitor not trigger anything over ebus, or cant ebusd see them? I thought it snooped on everything.

@mthomalla
Copy link

Hy,
after reading John´s comment from yesterday, i set in HA the Ebusd integration back to autostart and completely restarted HA.
The reverted 08.hmu.csv was loaded automatically, as well as other csv for my system.
The corresponding data is received correctly.

The heat pump has been working absolutely normally since then!

Best regards Marko

image

@jayis007
Copy link

jayis007 commented Mar 2, 2024 via email

@KnatterKnilch
Copy link

updated my first post with the log files. Maybe somebody can make more sense of it? I still don't get why and how HA can mess with the message polling as this is defined in the ebusd config file.
@john30 let me know what you need to be tried out. Would be glad to help find the root cause here

@jkunczik
Copy link

jkunczik commented Mar 2, 2024

I think I have observed that my heat pump stopped working after the log showed a bunch of sent poll-read hmu ... statements. I inspected your logs that both current_08hmu.log and old_08hmu.log show these statements, but not current_woHAOS_08hmu.log.

I am not too familiar with ebusd, but as far as I understood it only actively polls values if the configurations contain a poll priority (see message definition). However both configs the new one (9909b3a) and the stable one (9909b3a) do not have polling configured. Hence, this must be done by the HA integration.

My naive guess is that instead of simply listening, HA is making ebusd read a value that should only be polled by the controller and thus brings the system to a safety stop of sorts.

@jkunczik
Copy link

jkunczik commented Mar 2, 2024

I dug into the HA integration code and found that ebusdpy (which is used by the HA integration) is issuing the following to read values:

https://github.com/CrazYoshi/ebusdpy/blob/977fe2d795e0521a0a99d33f19f2cf8ba28e18cb/ebusdpy/ebusdpy.py#L30C1-L31C58

with a ttl of:

https://github.com/home-assistant/core/blob/9e428c6c5fc393dae97c7cc10fe834e993502b4c/homeassistant/components/ebusd/__init__.py#L26C1-L26C16

According to the documentation, this command instructs ebusd to actively poll from the bus if the cached values are older than 15 minutes (900 seconds). I believe this leads to the crashes of the heat pump, because there are now two masters (the controller and ebusd) actively polling these values.

If somebody can confirm my theory, I would open an issue at ebuspy to make sure that it never actively polls the bus by default.

@pulquero
Copy link

pulquero commented Mar 3, 2024

I can cast doubt on your theory, or at least it is not the whole picture (maybe it is an additional issue) as I'm not using HA integration (I'm using HA addon, so ebusd in docker, sensors over MQTT). I'm now testing the current (reverted config) but using the newer config names (and entries sorted by ID) to reconfirm everything was previously working before. I then plan to incrementally add back in the new changes until it breaks.

@jkunczik
Copy link

jkunczik commented Mar 3, 2024

Good catch! However, I think it still can be the same problem. In the mqtt-hassio.cfg, the filter-seen option is set to 5, which means that values will be polled with a priority of 5. If my assumption is correct, setting the filter-seen option to 1, should fix the problem, because it prevents ebusd from actively polling read messages.

@pulquero
Copy link

pulquero commented Mar 3, 2024

Oh, that is interesting. So, those new CSV changes could have meant automatic polling was triggered on something new that didn't take too kindly to being polled. I'll do some testing with it set to 1.

@pulquero
Copy link

pulquero commented Mar 3, 2024

It is working well, current cycle > 2 hours. @jkunczik, well done, I think you've nailed it. @john30 I've raised #1213 for mqtt-hassio.cfg.

@jkunczik
Copy link

jkunczik commented Mar 4, 2024

Glad to hear! Thanks for testing and opening the pull request. I opened an issue at ebusdpy (CrazYoshi/ebusdpy#10).

@chheiss
Copy link

chheiss commented Mar 4, 2024

Same problem here (Vaillant Arotherm plus 7.5kW), I had over 50 compressor starts per day (usual: 1-3) since upgrading to the current 08hmu version, terrible.
Will report back if changing the filter setting in the hassio.cfg file stops the problem.

@john30
Copy link
Owner

john30 commented Mar 24, 2024

which one are you refering to exactly @chheiss ?

@philsson
Copy link

Can anyone recommend a good working config. Currently running John32 master at ceee6a0 but there are some sensors missing. I do not have flow for example. Arotherm+ 7kw

@pulquero
Copy link

@philsson
Copy link

philsson commented Apr 1, 2024

john30/ebusd-configuration#407

Thanks pulquero. I am now using your fork and its working nicely but still have a bunch of unknown data and flow sensor is still missing (looking to get liters/minute which I believe should be announced).

@pulquero
Copy link

pulquero commented Apr 1, 2024

The flow rate should be given by LiveMonitorBuildingCircuitFlowRate - I have it working in HA. Check your filter settings.

@philsson
Copy link

philsson commented Apr 1, 2024

The flow rate should be given by LiveMonitorBuildingCircuitFlowRate - I have it working in HA. Check your filter settings.

I have no sensors under 'LiveMonitorBuilding...' but some under 'LiveMonitorPower'.
What filter settings are you referring to? And is there some channel I can write to you not to fill this "issue" with unrelated messages.

@pulquero
Copy link

pulquero commented Apr 1, 2024

If you like raise an issue on my github against my config.

@philsson
Copy link

philsson commented Apr 2, 2024

If you like raise an issue on my github against my config.

I just tried doing so but issues tab is missing. Could it be you don't have issues enabled on your fork?

Anyways I added the filter-name= flag to the MqttVariable section in the configuration of the integration in HA. Tons of new stuff but nothing under LiveMonitorBuilding... I have scanned the mqtt topics several times before (using mqtt explorer) but never seen the flow there either.

@pulquero
Copy link

pulquero commented Apr 2, 2024

Issues enabled.

@philsson
Copy link

philsson commented Apr 2, 2024

Issues enabled.

Thank you. I've posted my case there now 🙂

@john30
Copy link
Owner

john30 commented May 12, 2024

closing as not an ebusd issue in the first place and discussion going on elsewhere

@john30 john30 closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet