scottyphillips / echonetlite_homeassistant

A Home Assistant custom component for use with ECHONET enabled devices.
MIT License
137 stars 42 forks source link

Use in Japan? #196

Open magnusroe opened 1 month ago

magnusroe commented 1 month ago

I see this was translated to Japanese, but is it possible to use here? As far as I can see Echonet is not available in Japan, Mitsubishi is making me use a rather terrible app called KirigamineRemote that doesn't seem to have anywhere to enable Echonet. I have an MSZ-ZW2218 which isn't in the supported list, but it connects to wifi with a HM-W002-AC so I thought I'd give it a shot anyway.

ammgws commented 1 month ago

Good news - look at the bottom section of page 11 of your aircon's manual: https://dl.mitsubishielectric.co.jp/dl/ldg/wink/ssl/wink_doc/m_contents/wink/RAC_IB/jg79d165h01.pdf

nao-pon commented 1 month ago

I think you can use it without any problems based on the specifications! Please checkout next link.

nao-pon commented 1 month ago

For your reference, there is also the following solution, please ask any questions about it in the community for that solution, not here.

The cost of materials is about $7 USD.

magnusroe commented 1 month ago

Good news - look at the bottom section of page 11 of your aircon's manual: https://dl.mitsubishielectric.co.jp/dl/ldg/wink/ssl/wink_doc/m_contents/wink/RAC_IB/jg79d165h01.pdf

I have installed the HM-W002-AC the manual mentions, but the only app they offer doesn't seem to mention Echonet anywhere.. There is something called a HM-GW03 that appears to be an Echonet bridge, could it be required for some devices? The Mitsubishi Echonet / HEMS app ( 三菱HEMS (HM-ST03)) will not do anything unless connected directly to the GW03 box. I found such a box on mercari, do you think it would be worth a shot?

magnusroe commented 1 month ago

For your reference, there is also the following solution, please ask any questions about it in the community for that solution, not here.

The cost of materials is about $7 USD.

* https://github.com/echavet/MitsubishiCN105ESPHome

Thank you, I will give it a thought in the morning, if I can establish whether it is supported as it is now. I also saw it in the compatibility list, but this compatibility list that I found before posting here doesn't mention mine specifically.

nao-pon commented 1 month ago

If you have HM-W002-AC installed, I think you can integrate it with this component. Install this component via HACS and try adding an entry from ECHONETLite in Devices and Services.

magnusroe commented 1 month ago

If you have HM-W002-AC installed, I think you can integrate it with this component. Install this component via HACS and try adding an entry from ECHONETLite in Devices and Services.

I have tried, it does not find any of my two different types of Mitsubishi AC with HM-W002-AC installed. I will try to buy their HEMS box and see if the app that requires this box will do something worthwhile.

nao-pon commented 1 month ago

Even if you specify an IP address it won't register?

ammgws commented 1 month ago

I have HM-W002-AC with my 2018 model Mitsubishi AC and it works fine.

I suggest not buying the HM-GW03 if you want to control the AC via Home Assistant, because that thing will be tied to whatever app they bundle with it and won't expose anything new that Home Assistant could use (I have a OEM version of that HEMS box and even though it can pickup echonet devices it does not allow control of the box itself over echonet)

Have you tried running a simple python script like this to see if it can find them?

import asyncio

from pychonet.lib.udpserver import UDPServer
from pychonet import Factory
from pychonet import ECHONETAPIClient as api
from pychonet import HomeAirConditioner
from pychonet import EchonetInstance

async def main():
    udp = UDPServer()
    loop = asyncio.get_event_loop()
    udp.run("0.0.0.0", 3610, loop=loop)
    server = api(server=udp)
    host = 'put your AC IP address here'
    await server.discover(host)

    # Timeout after 3 seconds
    for x in range(0, 300):
        await asyncio.sleep(0.01)
        if 'discovered' in list(server._state[host]):
             print(f"{host} - ECHONET Node Discovery Successful!")
             break

    await server.getAllPropertyMaps(host, 1, 48, 1)

if __name__ == "__main__":
    asyncio.run(main())
magnusroe commented 1 month ago

Mitsubishi has an app that requires the use of the GW03 box, I hoped maybe this app would be able to access the Echonet setting mentioned in other regions' apps. I was going to try to run the script, but while configuring the requirements to execute a script my HA install appears to have bricked itself, so I guess this will be a useful opportunity to try adding the heat pumps on a fresh deployment! I'm debating whether to give up on Raspberries for this though as this something similar happened with my last HA attempt.

MrFusion4 commented 1 month ago

Good news - look at the bottom section of page 11 of your aircon's manual: https://dl.mitsubishielectric.co.jp/dl/ldg/wink/ssl/wink_doc/m_contents/wink/RAC_IB/jg79d165h01.pdf

I have installed the HM-W002-AC the manual mentions, but the only app they offer doesn't seem to mention Echonet anywhere.. There is something called a HM-GW03 that appears to be an Echonet bridge, could it be required for some devices? The Mitsubishi Echonet / HEMS app ( 三菱HEMS (HM-ST03)) will not do anything unless connected directly to the GW03 box. I found such a box on mercari, do you think it would be worth a shot?

I have a pair of MBZ-3617AS-IN systems in my living room (in Japan), connected via WiFi using a pair of HM-W002-ACB boxes. I also have Mitsubishi's HM-GW03 Collector Unit and the HEMS app associated with it.

To make the units work with the Echonet Lite integration, I needed to disconnect them from the HEMS collector unit, and re-connect them directly to my router. They then had an IP address with was auto-discovered by the integration. Both units also, despite not being directly connected to the HEMS collector unit, still can be operated using it and the HEMS app.

I originally planned on selling the Mitsubishi Collector Unit once I set this up in Home Assistant, but kept it for a couple reasons:

magnusroe commented 3 days ago

Well, my raspberry pi HA corrupted its memory card and my router ran into a device limit, so I spent the past month and a half settling on a new host system for HA and redoing my home network. I'm still not able to add the Mitsubishi ACs though, even when trying with a secondary Wifi AP from a different manufacturer. Is the 3610 port unblocking critical? As my devices are already connected to the Wifi and function in their native app I have assumed this was not important, and as my condo is connected to a building intranet, opening ports is not something I'm authorized to / capable of doing.

MrFusion4 commented 3 days ago

Not sure what to say there. As far as port unblocking goes, I've done none of that, so it shouldn't be the issue.