You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I own a mitsubishi AC with Wifi connectivity that already works with melcloud. I would like to further understand about its functioning and I started messing around with wireshark and nmap.
Before discovering your great page, I already managed to intercept the traffic using wireshark (on a mac) but the only useful infos I could extract were a communication between the device and the host "production.receiver.melcloud.com" on port 80 (a POST request) and a sequence of calls on port 443 that I couldn't decrypt. For that, I'll give a try to your proxy
As I can see, the workflow always starts from the device, that regularly polls the server for commands and this sucks ! I would like to call the device and send commands to be executed immediately !.. Do you think that's possibile to use port 80 for that ?
I doscovered through nmap that the port is open and responding but the webserver replies with 401 (it needs a password). Have you tried to investigate on that side ?
production.receiver.melcloud.com resolves to the same IP address as leswifidata.meuk.mee.com so it should work fine with the code in this repo.
You're correct that the wifi device makes HTTP requests and sends device status, approximately every minute. Mitsubishi's server can respond with codes that the wifi device will send to the heat pump/AC, for example in response to you making changes on the MELCloud site/app. This is the only way I know to send commands using the wifi adapter and I haven't explored sending HTTP requests to it directly but maybe this was left open for an engineer to use or for debugging purposes.
To make changes immediately you will need to connect something to the serial port of the AC and send commands. Have you seen this repo https://github.com/SwiCago/HeatPump? It is more focussed on air conditioning units (hopefully like yours).
and my also sends something to production.receiver.melcloud.com
but as its https I can not decrypt it, so now I don't know how to get my own server up then (I don't have Mitsubishi private key so I could setup my own server)
and my also has http page up on port 80 but it requires http basic auth which I don't have username/password for
Is there any firmware update for this device floating around which I could open in binwalk to see whats going on in this MAC-577IF2-E thing?
I wanted to check if you made any progress on your search? I'm in the same situation as you: looking to control a MAC-577IF2-E connected A/C unit locally via WiFi.
Not yet, I guess we need to find a firmware first so we can get to its http server
There is even a firmware upgrade for mine that I am suggested to install but dont want to because probably even if I capture update process using wireshark, its using https so I couldnt get to the update file anyway
Hi @niobos , don't worry about discussing it here - this is an interesting conversation :) Have a look at the README where I mention the HTTP proxy mode and it might give you ideas about how to redirect the HTTP request from the wireless interface using the dsniff toolkit. You might struggle unless it accepts insecure (self-signed) TLS certificates but this is probably worth a try.
I already tried intercepting the traffic. The MELcloud-server uses a custom root CA (/CN=MELCloud Root Authority), with a leaf certificate for /CN=production.receiver.melcloud.com. I tried presenting my own similar chain, but I get an "Unknown CA" error from the client (MAC-577IF2-E) during the TLS handshake phase. Seems like the CA is pinned in the firmware. I'll have to come up with some more creative ideas...
For the HTTP-server: it looks like not all paths are protected by the authentication challenge: /license seems to work unauthenticated.
I would also like to control the MAC-577IF2-E locally. If anyone is interested, in addition to /license, the MAC-577IF2-E accepts the following URLs and asks for a username/password:
/
/analyze
/config
/default
/network
/server
/service
/update
Found by writing a script that tried a list of common English words as URLs. (During this process the MAC-577IF2-E seemed to crash or hang repeatedly as well.)
Note: I know that /network is accepted without a password when setting up the device, perhaps the other URLs might work in that case as well? Something I might test later.
This is the firmware for MAC-577IF2-E.
The HTTP server needs password for these URLs, even when the module was new.
I don't found the password in it, maybe it's stored in the nvram, like MAC, Serial, etc.
I tried binwalk and strings.
I found some URL-s, and maybe some valid usernames (root, admin, suser, user)
I found that /config accepts "user" as username and the KEY on the module label for password.
Neat, works like a charm, although config endpoint isnt realy usefull (only some select list with yes/no that asks you about current internet) and I guess other endpoints need a diferent user/password combo
Its a nice step forward
Not sure if this fw runs some sort of linux with busybox, maybe try cracking the password with john the ripper (if you managed to find some etc/shadow or etc/passwd file)
No I have to take a look at binwalk myself (or you could maybe post content of it and strings here for easier acsess)
I am still puzled on how did you manage to get the fw? (did u open the device up and read the flash? Or did you manage to capture it somehow)?
From the looks of it [1], the firmware seems to be FreeRTOS, not linux.
And based on a reference to C:\sdk-ameba-v4.0c\component\common\mbed\targets\hal\rtl8195a\gpio_api.c, We may have a hint to what hardware is used.
on mine telnet also returns what I type and I cant seam to invoke any command, even with @mafredri script (also tried @twignet script)
although, maybe the problem is I rewrote his (@mafredri ) script in python
#!/usr/bin/env python# -*- coding: utf-8 -*-from __future__ importprint_functionimportosimportsysimportsocketimportsignalimportargparseimportthreadingtry:
importreadlineexceptImportError:
try:
importpyreadlineasreadlineexceptImportError:
try:
importpyreadline3asreadlineexceptImportError:
readline=Noneimportatexit# Python 2/3 compatibility for input()try:
input=raw_inputexceptNameError:
passHISTORY_FILE=os.path.join(os.path.expanduser("~"), ".meltelnet_history")
defload_history():
try:
readline.read_history_file(HISTORY_FILE)
exceptIOError:
passdefsave_history():
try:
readline.write_history_file(HISTORY_FILE)
exceptIOError:
passdefreceiver(sock, outputs):
"""Receive data from the server and print/log it."""whileTrue:
try:
data=sock.recv(4096)
ifnotdata:
break# Python 3: decode, Python 2: keep as strtry:
text=data.decode("utf-8", errors="replace")
exceptAttributeError:
text=dataforoutinoutputs:
out.write(text)
out.flush()
exceptsocket.error:
breakdefmain():
parser=argparse.ArgumentParser(description="Minimal Telnet-like client")
parser.add_argument("host", help="Host to connect to")
parser.add_argument("--log", dest="log_path", default="", help="Path to log file")
args=parser.parse_args()
address= (args.host, 23)
# Connect to servertry:
sock=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(address)
exceptsocket.errorase:
print("Failed to connect: %s"%e, file=sys.stderr)
sys.exit(1)
print("Connected to %s:%d"%address, file=sys.stderr)
outputs= [sys.stdout]
log_file=Noneifargs.log_path:
try:
log_file=open(args.log_path, "a")
outputs.append(log_file)
exceptIOErrorase:
print("Failed to open log file: %s"%e, file=sys.stderr)
sys.exit(1)
ifreadline:
load_history()
atexit.register(save_history)
else:
print("Warning: No readline support — history and line editing disabled. (pip install pyreadline3 if on windows)")
stop_event=threading.Event()
defhandle_sigint(signum, frame):
print("\nReceived SIGINT...", file=sys.stderr)
stop_event.set()
try:
sock.shutdown(socket.SHUT_RDWR)
exceptsocket.error:
passsock.close()
signal.signal(signal.SIGINT, handle_sigint)
# Start receiver threadt=threading.Thread(target=receiver, args=(sock, outputs))
t.daemon=Truet.start()
try:
whilenotstop_event.is_set():
try:
line=input("")
except (EOFError, KeyboardInterrupt):
breakifline.strip().lower() =="exit":
breakifline.strip():
ifreadline:
readline.add_history(line)
try:
# Python 3 needs bytesifnotisinstance(line, bytes):
line_to_send= (line+"\r").encode("utf-8")
else:
line_to_send=line+"\r"sock.sendall(line_to_send)
exceptsocket.errorase:
print("Write error: %s"%e, file=sys.stderr)
breakfinally:
stop_event.set()
try:
sock.close()
exceptsocket.error:
passiflog_file:
log_file.close()
print("Connection closed", file=sys.stderr)
if__name__=="__main__":
main()
and I am on windows
@mafredri How do I dump my adapter? Is there any dumper script uvailable?
Eventualy I would like to utilize /update endpoint to update my adapter to something more recent
I published a HACS component for the library I've been working on: https://github.com/pymitsubishi/homeassistant-mitsubishi. I've tested very basic controls and I don't think the vane mapping is working properly. I will try to do some proper testing a bit later. For now it seems to work for the basic use cases (changing setpoint, fan speed, mode, etc)
I packaged pymitsubishi and home assistant component for NixOS (NixOS/nixpkgs#429868)
Everything is working pretty good, thank you! I could finally disconnect my module from the internet.
One thing that would be nice to improve is to send a state update request when changing settings via home assistant, because now it might take up to 30 seconds to reflect the changed state.
But I can also create an issue in the repository with the improvement ideas.
Has anyone found a way to remotely reboot the unit? I had one device that didn't act on requests (but it did respond to the HTTP calls). I ended up power cycling the whole A/C system, but it would be easier to just reboot a single MAC-577IF unit.
Has anyone found a way to remotely reboot the unit? I had one device that didn't act on requests (but it did respond to the HTTP calls). I ended up power cycling the whole A/C system, but it would be easier to just reboot a single MAC-577IF unit.
Include a <RESET></RESET> block in /smart and it will reboot
@niobos you think you could open issues on your https://github.com/niobos/pymitsubishi
it seams to get updates faster and at least was deAIfied (a word I invented that means when a program was written by AI and then a human came, fixed it up and made it better)
@niobos you think you could open issues on your https://github.com/niobos/pymitsubishi it seams to get updates faster and at least was deAIfied (a word I invented that means when a program was written by AI and then a human came, fixed it up and made it better)
I would prefer to get my changes merged into the original repo, but if that doesn't work, I might indeed create a "full" fork and open issues/PRs.
I've just received notification that my first PRs were accepted, so I'll try to create another batch.
@ashleigh-hopkins What's the status of the HA integration https://github.com/pymitsubishi/homeassistant-mitsubishi? I noticed that there have been quite a few improvements since last release 0.1.8. Are you planning to release 0.2.0 anytime soon? Will you submit it to HACS (to avoid adding the custom repository)? Is everything working or is anything missing in particular at this point?
Thanks a lot for all your efforts in putting this HA integration together!
PS: the integration (at least version 0.1.8) appears to have no icon in HA, although I remember from your past changelogs that you had mentioned adding it. Is it just me?
Just as a side note: I tested version 40 setup mode and even during the initial provision the only route that works is /network. So the server is completely locked down, glad we still have /smart :P
Just as a side note: I tested version 40 setup mode and even during the initial provision the only route that works is /network. So the server is completely locked down, glad we still have /smart :P
Ha I tested the same thing yesterday and came to the same conclusion :)
By the way where do you see which version number you are on without unitinfo?
Just as a side note: I tested version 40 setup mode and even during the initial provision the only route that works is /network. So the server is completely locked down, glad we still have /smart :P
Ha I tested the same thing yesterday and came to the same conclusion :) By the way where do you see which version number you are on without unitinfo?
Polling /smart will contain an xml field with the version thankfully
PSA to recent and future buyers out there. Pretty much everyone with a MAC-577IF2-E adapter reported having app version 37. Well, the unit I bought just 2 months ago (June 25) comes pre-installed with app version 40. Which apparently is not offered to existing owners as a firmware upgrade. This version, at least when no longer in factory reset setup mode, will lock down the webserver entirely, so no more /analyze debug/telnet mode. Thankfully the "unregistered" AES key still works, as does /smart (and echonet), so I blocked Melcloud immediately in my router. Be aware that without that block Mitsubishi can update this key at any time and without webserver access you will have a hard time reading out the new key.
The main goal of app version 40 was presumably to allow the AC remote to trigger the pairing mode of the wifi adapter which is a fairly new feature. But it comes with this rather undesirable side effect of being one step away from being locally inaccessible again. There is a chance the full webserver is accessible still while in setup mode after a factory reset, but I haven't tried that yet. So be careful out there if you just bought your A/C
I tried the "There is a chance the full webserver is accessible still while in setup mode after a factory reset, but I haven't tried that yet." on my unit today and it no additional pages were accessible during the setup phase. I had been hoping to get to the config endpoint.
Activity
ncaunt commentedon May 9, 2020
Hi anxdroid,
production.receiver.melcloud.comresolves to the same IP address asleswifidata.meuk.mee.comso it should work fine with the code in this repo.You're correct that the wifi device makes HTTP requests and sends device status, approximately every minute. Mitsubishi's server can respond with codes that the wifi device will send to the heat pump/AC, for example in response to you making changes on the MELCloud site/app. This is the only way I know to send commands using the wifi adapter and I haven't explored sending HTTP requests to it directly but maybe this was left open for an engineer to use or for debugging purposes.
To make changes immediately you will need to connect something to the serial port of the AC and send commands. Have you seen this repo https://github.com/SwiCago/HeatPump? It is more focussed on air conditioning units (hopefully like yours).
Cheers!
veso266 commentedon Aug 2, 2021
I also own Mitsubishi MAC-577IF2-E
and my also sends something to production.receiver.melcloud.com
but as its https I can not decrypt it, so now I don't know how to get my own server up then (I don't have Mitsubishi private key so I could setup my own server)
and my also has http page up on port 80 but it requires http basic auth which I don't have username/password for
Is there any firmware update for this device floating around which I could open in binwalk to see whats going on in this MAC-577IF2-E thing?
Thanks for Anwsering and Best Regards
niobos commentedon May 31, 2022
Hi @veso266,
I wanted to check if you made any progress on your search? I'm in the same situation as you: looking to control a MAC-577IF2-E connected A/C unit locally via WiFi.
veso266 commentedon May 31, 2022
Not yet, I guess we need to find a firmware first so we can get to its http server
There is even a firmware upgrade for mine that I am suggested to install but dont want to because probably even if I capture update process using wireshark, its using https so I couldnt get to the update file anyway
niobos commentedon May 31, 2022
Thanks for you reply. I have some idea's to try to intercept the traffic, but I don't know if they'll work. I'll keep you posted
On second thought; maybe this GitHub-issue isn't the ideal place to discuss this... but I don't have a better idea at the moment. Sorry ncaunt...
ncaunt commentedon May 31, 2022
Hi @niobos , don't worry about discussing it here - this is an interesting conversation :) Have a look at the README where I mention the HTTP proxy mode and it might give you ideas about how to redirect the HTTP request from the wireless interface using the dsniff toolkit. You might struggle unless it accepts insecure (self-signed) TLS certificates but this is probably worth a try.
niobos commentedon May 31, 2022
I already tried intercepting the traffic. The MELcloud-server uses a custom root CA (
/CN=MELCloud Root Authority), with a leaf certificate for/CN=production.receiver.melcloud.com. I tried presenting my own similar chain, but I get an "Unknown CA" error from the client (MAC-577IF2-E) during the TLS handshake phase. Seems like the CA is pinned in the firmware. I'll have to come up with some more creative ideas...For the HTTP-server: it looks like not all paths are protected by the authentication challenge:
/licenseseems to work unauthenticated.ehliar commentedon Jun 17, 2022
I would also like to control the MAC-577IF2-E locally. If anyone is interested, in addition to /license, the MAC-577IF2-E accepts the following URLs and asks for a username/password:
Found by writing a script that tried a list of common English words as URLs. (During this process the MAC-577IF2-E seemed to crash or hang repeatedly as well.)
Note: I know that /network is accepted without a password when setting up the device, perhaps the other URLs might work in that case as well? Something I might test later.
thxer commentedon Jul 20, 2022
APP.zip
This is the firmware for MAC-577IF2-E.
The HTTP server needs password for these URLs, even when the module was new.
I don't found the password in it, maybe it's stored in the nvram, like MAC, Serial, etc.
veso266 commentedon Jul 20, 2022
Wow, thats great, how did you get the FW from it?
Did you try binwalk on app.bin?
thxer commentedon Jul 20, 2022
I tried binwalk and strings.
I found some URL-s, and maybe some valid usernames (root, admin, suser, user)
I found that /config accepts "user" as username and the KEY on the module label for password.
veso266 commentedon Jul 20, 2022
Neat, works like a charm, although config endpoint isnt realy usefull (only some select list with yes/no that asks you about current internet) and I guess other endpoints need a diferent user/password combo
Its a nice step forward
Not sure if this fw runs some sort of linux with busybox, maybe try cracking the password with john the ripper (if you managed to find some etc/shadow or etc/passwd file)
No I have to take a look at binwalk myself (or you could maybe post content of it and strings here for easier acsess)
I am still puzled on how did you manage to get the fw? (did u open the device up and read the flash? Or did you manage to capture it somehow)?
niobos commentedon Jul 21, 2022
From the looks of it [1], the firmware seems to be FreeRTOS, not linux.
And based on a reference to
C:\sdk-ameba-v4.0c\component\common\mbed\targets\hal\rtl8195a\gpio_api.c, We may have a hint to what hardware is used.[1]: I see reference to xTaskCreate, vTaskPrioritySet
niobos commentedon Jul 30, 2022
I've explored the firmware posted above. I found nothing useful yet, but I documented my findings on my blog. Will keep you posted.
TRIROG commentedon Sep 9, 2022
Great progress, hope we get the ability for local control!
134 remaining items
veso266 commentedon Aug 4, 2025
Finaly got a change to play with my unit
on mine telnet also returns what I type and I cant seam to invoke any command, even with @mafredri script (also tried @twignet script)
although, maybe the problem is I rewrote his (@mafredri ) script in python
and I am on windows
@mafredri How do I dump my adapter? Is there any dumper script uvailable?
Eventualy I would like to utilize
/updateendpoint to update my adapter to something more recentuvNikita commentedon Aug 4, 2025
I packaged pymitsubishi and home assistant component for NixOS (NixOS/nixpkgs#429868)
Everything is working pretty good, thank you! I could finally disconnect my module from the internet.
One thing that would be nice to improve is to send a state update request when changing settings via home assistant, because now it might take up to 30 seconds to reflect the changed state.
But I can also create an issue in the repository with the improvement ideas.
niobos commentedon Aug 4, 2025
Has anyone found a way to remotely reboot the unit? I had one device that didn't act on requests (but it did respond to the HTTP calls). I ended up power cycling the whole A/C system, but it would be easier to just reboot a single MAC-577IF unit.
dragonbane0 commentedon Aug 4, 2025
Include a
<RESET></RESET>block in /smart and it will rebootveso266 commentedon Aug 9, 2025
@niobos you think you could open issues on your https://github.com/niobos/pymitsubishi
it seams to get updates faster and at least was deAIfied (a word I invented that means when a program was written by AI and then a human came, fixed it up and made it better)
niobos commentedon Aug 11, 2025
I would prefer to get my changes merged into the original repo, but if that doesn't work, I might indeed create a "full" fork and open issues/PRs.
I've just received notification that my first PRs were accepted, so I'll try to create another batch.
codyc1515 commentedon Aug 12, 2025
Did anyone find a way to enable ECHONET for Lossnay units?
MacrosorcH commentedon Sep 13, 2025
@ashleigh-hopkins What's the status of the HA integration https://github.com/pymitsubishi/homeassistant-mitsubishi? I noticed that there have been quite a few improvements since last release 0.1.8. Are you planning to release 0.2.0 anytime soon? Will you submit it to HACS (to avoid adding the custom repository)? Is everything working or is anything missing in particular at this point?
Thanks a lot for all your efforts in putting this HA integration together!
PS: the integration (at least version 0.1.8) appears to have no icon in HA, although I remember from your past changelogs that you had mentioned adding it. Is it just me?
dragonbane0 commentedon Sep 18, 2025
Just as a side note: I tested version 40 setup mode and even during the initial provision the only route that works is /network. So the server is completely locked down, glad we still have /smart :P
fstarkenberg commentedon Sep 18, 2025
Ha I tested the same thing yesterday and came to the same conclusion :)
By the way where do you see which version number you are on without
unitinfo?dragonbane0 commentedon Sep 18, 2025
Polling /smart will contain an xml field with the version thankfully
domy86 commentedon Jan 23, 2026
Does anyone know if there is a way to set these options locally?
It's from MELCloud unit settings.
dragonbane0 commentedon Jan 23, 2026
Cross link for visibility: pymitsubishi/homeassistant-mitsubishi#23 (comment)
encryptix commentedon Jun 27, 2026
I tried the "There is a chance the full webserver is accessible still while in setup mode after a factory reset, but I haven't tried that yet." on my unit today and it no additional pages were accessible during the setup phase. I had been hoping to get to the config endpoint.
codyc1515 commentedon Jun 27, 2026
Yep, I also cannot access the other end points now.