gysmo38 / mitsubishi2MQTT

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

2022.12 not working in HA #195

Closed freddieleeman closed 11 months ago

freddieleeman commented 1 year ago

After upgrading from 2022.11.1 to 2022.12.0 this morning, I'm unable to control my HVAC from Home Assistant. The set temperature is not visible anymore.

The top HVAC is running 2022.12.0, the bottom 2022.11.1 (again) image

Downgrading to 2022.11.1 solves the issue.

Sprinterfreak commented 1 year ago

Can You please take a look in Your home-assistant.log for any Tracebacks hinting to some Jinja issues or does it not heat at all?

Have you looked into mqtt traffic for that specific missing value? Should be at topic mitsubishi2mqtt/+/state The "temperature" key in that json.

Have you checked the set temp was within the allowed range configured on the ESP? Check if the desired values appear in topic homeassistant/climate/+/config

The default values are min 16°C, max 31°C. Check on the ESP's webserver if the values are set correct or if any configuration got mangled by the update. Happend to me a few times. Reset to defaults and reconfiguraton fixes this usually.

I'm still on b95ad0a589f516345a2bb39b8b270c85ee129337 which changed that value display in order to be able to display the set temp including min and max. Maybe I try 2022.12.0's latest changes too later.

Sprinterfreak commented 1 year ago

Just updated one unit to 2022.12.0 and the HA integration works just fine so far. What I don't like about 2022.12.0 is the chinese language now forcibly active tho.

gysmo38 commented 1 year ago

For me it work fine but with a hight latency. I will not have time to check before christmas break. I will check in January.

sean-leach commented 1 year ago

I can also confirm that this is happening with the latest 12. update in my Home Assistant install as well. I can control temps if I sign into the device directly, but Home Assistant no longer sees what I currently have set as the temp for the particular unit.

This was working in the 11. release I was using prior.

Sprinterfreak commented 1 year ago

As i mentioned above. Please provide information. Since I can not produce this condition with 4 units on 2022.12.0 and HASS 2022.10.2 and it obviously works for gysmo38 too, we can not further process this issue without external input.

We need at least:

jsolarin commented 1 year ago

It looks like 2022.12 gets an error on the MQTT climate python script trying to parse the float...

Exception in handle_target_temperature_received when handling msg on 'mitsubishi2mqtt/Minisplit_Office/state': '{"roomTemperature":48,"temperature":72,"fan":"AUTO","vane":"AUTO","wideVane":"|","mode":"off","action":"off","compressorFrequency":0}' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 44, in wrapper msg_callback(msg) File "/usr/src/homeassistant/homeassistant/components/mqtt/climate.py", line 572, in handle_target_temperature_received handle_temperature_received( File "/usr/src/homeassistant/homeassistant/components/mqtt/climate.py", line 548, in handle_temperature_received payload = render_template(msg, template_name) File "/usr/src/homeassistant/homeassistant/components/mqtt/climate.py", line 516, in render_template return template(msg.payload) File "/usr/src/homeassistant/homeassistant/components/mqtt/models.py", line 233, in async_render_with_possible_json_value self._value_template.async_render_with_possible_json_value( File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 589, in async_render_with_possible_json_value return _render_with_context(self.template, compiled, variables).strip() File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1942, in _render_with_context return template.render(kwargs) File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "