Mitsubishi AC Integration and AE-200

Hi all,

Does anyone know whether the Mitsubishi (MelCloud) integration can support the AE-200 controller? Alternatively, whether there’s a way to integrate that controller into HASS?

Thanks in advance for any pointers / insights.

Yes I’d love to know this. I’ve been playing around with the websocket API (Postman) the AE-200 HTML5 web interface uses.

It’s more of a commercial system so I’m doubting anyone’s done the work, but I’d happy look at it is any could point me to a starting point or existing code that could be adapted?

Following James’ suggestion of using the AE-200’s websocket API I have created a new custom integration that does just that.

Installation

  1. Copy the files from the git repo into <config_dir>/custom_components/ae200/ and restart Home Assistant

  2. Edit configuration.yaml and add one or more platform entries under climate

climate:
  - platform: ae200
    controller_id: name_of_controller  # used as part of entity id's
    ip_address: <ip_address>
  1. Restart Home Assistant and a new entity will be created for each unit of the controller.

How can I learn about the xml protocol of ae-200? How did you figure out how the web socket api works?

Thank you

Also looking for ANY help on integrating with this!?

@JamesLodge - you mention websocket and HTML5, yet my AE-200 seems to have an archaic (and I don’t use that word lightly) Java applet interface!?

If you could point me in the right direction I would be so grateful!

Kind regards, Tim

I can’t find any traces online of the existence of this other than this thread and your repo - nor can I connect to it on my AE-200. Please can you point me in the right direction…!? Thanks in advance.

Just for anyone else getting here - the HTML interface is at /control/index.html?en and it maintains a separate username/password from the main screen (i.e. new firmware requires administrator and “ad” followed by the “DP” code from the label, even if you’ve changed this on the device itself).

You can then sniff this to get the XML web socket packets.

Update:

Just in case it’s useful for someone - I’ve been struggling to establish a websocket connection from Node-RED. Well, after a few hours of wireshark packet-level testing I’ve learned that the AE200 will drop incoming connections that don’t have the “Origin” header set to a value. “null” works fine.

From there on I think you can just use the web GUI and dev tools to inspect the XML packets coming and going to achieve what is needed (as this home assistant interface does). I’m not sure if some settings need authentication, so that’s next on my list to look at.

Final Update:

I’ve been able to get all AC and Lossnay MVHR units unto HA by parsing all the data via Node-RED. If it’s ever useful to someone, let me know and I’ll happily share my code.

I installed your beautiful work in my system. Everything works but in my system there are also 2 machines (PWFY-P100) and 2 machines (PWFY-P200). Your application displays them in the entity list. Unfortunately, however, these 4 entities I can only see the data but I cannot turn them on or off. I can’t raise the temperature or lower it. Consider that these machines have to run at 50 degrees. Can you help me? Thanks

I’m very interested in seeing the code for your Node-RED ↔ AE-200 integration.

Here’s my flows, though I must say they are far from perfect and may not work for your exact setup. The initial runs should build up a flow variable with all the device info and addresses, then construct and send MQTT HA discovery packets for the setup. This now includes filter signs and error states. You should only need to update the websocket for your AE200 IP and the MQTT. See how you go.

The JSON is big so I’ve pasted it here: [ { "id": "afd3d04528cf5eb1", "type": "group", " - Pastebin.com

Update: minor bug fixed, use this instead: [ { "id": "afd3d04528cf5eb1", "type": "group", " - Pastebin.com

Edit: While I remember - I had a bug the other day where a ‘null’ sent all the units into 0ºC set point and started cooling - so be warned, I accept no liability for my poor code!

I just wanted to give a HUGE thank you for posting this code. It’s helped me immeasurably!

For people stumbling onto this thread:

  • Import Deggle’s JSON export into Node-RED.
  • Edit the AE-200 Web Socket node so the URL IP address matches your AE-200
  • Edit the ae200/+/+/set node’s Server with the HomeAssistant Name, Server (IP of your HA mosquito broker) and credentials (on the Security tab).
  • If haven’t used Node-RED yet, ensure the API node has been dragged and dropped below the AE200 Interface flow
  • Deploy
  • You should see Green connected dots next to AE-200 Web Socket and as200/+/+/set nodes.
  • Check your Settings > Devices & services > entities tab for new ‘mnet’ entities.
  • Add away!

Huge cheers to @Deggle (Tim) for providing this super helpful flow for us AE-200 users!!