Mitsubishi MELCLOUD integration with Home Assistant

Hi, how do you add it on HomeKit?
Thanks

Done, thx!!

Hi guys!
I need supportā€¦ I successfully configured the integration via HA settings but I see this message:
image

Why? No devices are discovered even if I can see them in the Mecloud APP.

Trying with o0Zzā€™s solution everything is ok!

Are you using the version bundled with home-assistant? What version of home-assistant are you running?

0.108 should fix an issue with detecting devices assigned to areas within a building. The release notes are not that accurate with these smaller profile integrations making latest stable the safest bet.

If you are running the latest stable release of home-assistant, how have you assigned your devices to areas/floors/buildings/etc?

Iā€™m running HA 0.108.5 and this is my melcloud config:

You have the patched device search. Thatā€™s not the issue then. Iā€™ll test a similar setup anyways later just to make sure.

What devices are these? Could you send me a ListDevices response capture from MELCloud as a private message?

I just realized that I had PRā€™d the device search patch to incorrect branch. Itā€™s coming in 0.109 that should be released on Wednesday.

If you want to get things working before 0.109, ā€˜Moveā€™ the devices to ā€˜No Floorsā€™ and ā€˜No Areasā€™ in MELCloud. You can find the option under ā€˜Actionsā€™ -> ā€˜Moveā€™ of the devices.

What is the consequence of this sentence " While not optimal, the provided password is not stored ." ?

Does it mean that one has to type password at every homeassistant boot, or ?

1 Like

No, it doesnā€™t. The password is exchanged for a token and the token is stored. I acknowledge the possible issues caused by token expiration, but this far no one has reported about an expiration nor have I personally witnessed one. If issues come up, another solution will be selected.

Cool, thanks.

Iā€™m in the process of clean-up of my yaml-files, after been running on lovelace for sometime. I rather use the front-end for all I can.

Hello @vilppuvuorinen and thanks for the integration of this component in HA. However, Iā€™m having the same issue as @snowatom (Running HA 0.109.6). Already tried to pull out of zones one of my devices, as per screenshot, but no luck scr

o0Zzā€™s custom component solution works

Retried today (with no modifications).Works

@stevevg Great! Is it working for you even when devices are assigned to areas?

Yes, my devices are divided between zones

This is a sort of a request for comments: Iā€™ve added preliminary operation mode support for Ecodan device zones to the hass-melcloud experimental repo. A separate climate is added for the flow heat/cool modes. These climate entities reflect the current operation mode selection using simple hvac modes. When flow heat climate is in heat mode, the system is in flow heat mode and other climate entities related to that zone are in off hvac mode.

Iā€™d appreciate it if anyone has the time to test this feature out and comment on the approach.

Hi, i have two vertical fans. Is it possible to control them separately in HA?

@Johnyyy I donā€™t think that is possible. If you can control it from MELCloud, it should be possible. Please let me know if you have figured out how to control this through MELCloud.

Hi,

I can control it from the melcloud app. My heat pump is LN35.
The problem is, when i use Schedule in melcloud app, itā€™s not possible to use two different vertical settings.

I want full speed when i am at woork and slow speed when i am home. So i canā€™t use the schedule function. Whould me great if it could work with HA.

@Johnyyy Interesting. How exactly can you do that? I would need some screenshots of the controls in MELCloud. If you know your way around developer tools, could you also capture the HTTP requests associated with setting the fan speed? Itā€™s the SetAta request. It contains a bunch of semi-awkward info tho. You should try to check you arenā€™t leaking too much info and share it over a direct message.

Hi! Iā€™ve problems installing the new Melcloud integration, after setting the username and token on the UI, hassio return the error ā€œError handling requestā€. I have to say that I previously had the o0Zz custom component installed, and that before trying to add the new integration, I have removed its custom component folder and its configuration from configuration.yaml. Can anybody help me please?
Here the traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 125, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 145, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 54, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 103, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 201, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/melcloud/config_flow.py", line 78, in async_step_user
    return await self._create_client(username, password=user_input[CONF_PASSWORD])
  File "/usr/src/homeassistant/homeassistant/components/melcloud/config_flow.py", line 53, in _create_client
    self.hass.helpers.aiohttp_client.async_get_clientsession(),
  File "/usr/local/lib/python3.7/site-packages/pymelcloud/__init__.py", line 22, in login
    _client = await _login(email, password, session,)
  File "/usr/local/lib/python3.7/site-packages/pymelcloud/client.py", line 55, in login
    response.get("LoginData").get("ContextKey"),
AttributeError: 'NoneType' object has no attribute 'get'