Fix ping-ponging of reported temperature when off - #66
Conversation
It looks like some models of heat pump ignore remote temperature setting when off, reporting their internal temperature instead. This leads to our reported temperature to ping-pong between the internal temperature and the external temperature source.
|
Hello there, Thanks for the graph and the PR. I'd like to investigate three things before we look at merging this:
The reason I ask for the logs is that the ping-ponging suggests that it is actually reporting the correct remote temperature sometimes, and sometimes isn't. And especially because the top bits look poky and the bottom bits look flat, I suspect what's happening is that the remote temperature isn't being reported often enough, so it's timing out to internal, but then flipping back to the correct temperature as soon as it receives another report. It's weird that this happens only when Off, but it's possible the conditions change based on mode (like maybe if you do have an MHK2, it doesn't send temperatures as often when the system is off). Rather than change the logic to insert a virtual temperature rather than the real-reported temperature, the correct solution might just be the usual timeout mitigation strategies. |
Correct
A Home Assistant sensor (the IKEA matter air quality sensor), and yes.
Attached here: mitp-heat-pump-upper-logs.txt. Strings to grep for are "Master Bedroom Temperature Sensor" and 26.5.
I think the soonest I've seen this happen in the logs is 6 seconds after receiving an external temperature update (around 19:48:03.659) |
|
Thank you for the answers and logs. In the attached log, there are no instances of the Master Bedroom Temperature Sensor reporting a value, and consequently no instances of the ESP32 sending a RemoteTempSetRequest to the heatpump. If the heat pump doesn't receive a RemoteTempSetRequest after a certain interval (somewhere between like 55 and 600 seconds, it varies by equipment), it will fall back to the internal sensor until it receives a new remote temperature. I'm like 90% sure this is what's happening, so it's probably worth at least trying to set up an echo in the configuration. I'd start with maybe The echo should at least patch the issue and confirm that's the problem. Long-term I recommend using a push service instead as it has a bit more flexibility and control over the sensor values (though you have to do your own timeout check in Home Assistant in case the IKEA sensor battery dies). |
|
Oops, I guess I didn't download the new set of logs before I uploaded. I'll try to repro again when the sun sets in a few hours and I don't need air conditioning :-) I don't see this behavior while in cool mode, so I guess the heat pump's update timeout might be different depending on mode? (Should the example in the documentation be changed to 50s as a better default to use, or are there downsides to echoing more frequently?) |
The example is based on the 10min-timeout equipment (and the built in 7min timeout in MITP). The only downside of echoing too frequently is that there is the potential to fill up the send buffers and packets will get dropped (though that should be mitigated significantly in v2). In general I try not to push things too far one way or the other because of the big variety in equipment. |
|
Hi there, |


It looks like some models of heat pump ignore remote temperature setting when off, reporting their internal temperature instead. This leads to our reported temperature to ping-pong between the internal temperature and the external temperature source.
One of my air handlers is in my attic, so without this patch, I get these ridiculous looking graphs in home assistant:
