gysmo38 / mitsubishi2MQTT

Mitsubishi to MQTT with ESP8266 module
GNU Lesser General Public License v2.1
390 stars 139 forks source link

Temperature set in Home Assistant bounces to default value #106

Closed julrich1 closed 3 years ago

julrich1 commented 3 years ago

I'm hoping there is a simple fix or a way to debug this issue that I'm having with my new install of mitsubishi2MQTT. Controlling the mini-split via the web interface seems to work just fine, but in home assistant, the temperature is sent, the state is returned correctly, and then temperature is reset to a default value of 50.

Here is the temperature being set on the temp topic: image

Here is the fake state being sent to HA: image

And here is the update with the actual state shortly after, reset to 50: image

Any suggestions on what I might take a look at?

julrich1 commented 3 years ago

A side note but may be related, I'm seeing MQTT timeouts pretty consistently in the HA Mosquitto logs: 1601167425: Client HVAC_62e0c2 has exceeded timeout, disconnecting.

julrich1 commented 3 years ago

After a bunch of testing it appears this is related to using Fahrenheit units. Celsius seems to work and set the temperature correctly, but Fahrenheit will not hold the temperature setting when using Home Assistant.

julrich1 commented 3 years ago

These three lines seem to have caused the issue when using Fahrenheit. Commenting them out fixes the issue: https://github.com/gysmo38/mitsubishi2MQTT/pull/101/files#diff-ef77a1dd89510ec969cf6d63c05774a4R1418-R1420

I can debug more later but hopefully someone with more knowledge of the codebase can take a closer look.

melyux commented 3 years ago

Fixed in #105

julrich1 commented 3 years ago

Thanks! I will test out the new changes in the next few days.

melyux commented 3 years ago

Yep, just needs the PR situation sorted out first