mac-zhou / midea-ac-py

Home Assistant Custom Integration for Midea Group(Hualing, Senville, Klimaire, AirCon, Century, Pridiom, Thermocore, Comfee, Toshiba, Carrier, Goodman, Friedrich, Samsung, Kenmore, Trane, Lennox, LG and much more) Air Conditioners via LAN.
MIT License
539 stars 103 forks source link

Device not found #219

Closed Borty97 closed 1 year ago

Borty97 commented 1 year ago

After installing midea-discover and using midea-discover -a YOUR_ACCOUNT -p YOUR_PASSWORD to login and get the climate ID it shows this error: image There is no way to get information, even setting -i HOST_IP

Versions (版本信息)

Versió | core-2023.8.1 -- | -- Tipus d'instal·lació | Home Assistant Container Desenvolupador | false Supervisor | false Docker | true Usuari | root Entorn virtual | false Versió de Python | 3.11.4 Família del sistema operatiu | Linux Versió del sistema operatiu | 4.4.302+ Arquitectura de la CPU | aarch64 Zona horària | Europe/Madrid Directori de configuració | /config
mill1000 commented 1 year ago

What is the output when running with the -d option? e.g. midea-discover -d or midea-discover -d -i HOST_IP

What brand & model of devices do you have? Better yet, can you confirm the model of the WiFi dongle?

Borty97 commented 1 year ago

DEBUG: asyncio: Using selector: EpollSelector DEBUG: msmart.scanner: Broadcast message sent: 1 DEBUG: msmart.scanner: Socket timeout

In both scripts.

I use the Carrier WiFi Kit: https://gruporp.es/3333-kit-wifi-carrier-aire-acondicionado-split-pared-serie-gold.html

mill1000 commented 1 year ago

Has the device been added to the network via the manufacturer's app (MSmartHome, NetHome Plus, etc)?

What is the network configuration of your docker container (e.g. host, bridged, etc)? Are HA and the device on the same subnet?

Would you be comfortable running Wireshark to check the network traffic? That would let us determine if the broadcast isn't going out, or if we're failing to receive the response.

Borty97 commented 1 year ago

Has the device been added to the network via the manufacturer's app (MSmartHome, NetHome Plus, etc)? Yes, first with NetHome Plus and after with MSmartHome (when I realised it didn't work). What is the network configuration of your docker container (e.g. host, bridged, etc)? Are HA and the device on the same subnet? Host. Maybe they are in differents subnets (HA is connected via LAN) and the A/C via the IoT Wi-Fi that my router has (https://www.tp-link.com/es/home-networking/wifi-router/archer-c6/).

Would you be comfortable running Wireshark to check the network traffic? That would let us determine if the broadcast isn't going out, or if we're failing to receive the response. I will look about this software. I never used it before

mill1000 commented 1 year ago

Host. Maybe they are in differents subnets (HA is connected via LAN) and the A/C via the IoT Wi-Fi that my router has (https://www.tp-link.com/es/home-networking/wifi-router/archer-c6/).

Host is good. Ah that's interesting. Perhaps it is isolating the device from your main network. I found this in some release notes for the C6. image

Can you ping the IP from the HA system?

Borty97 commented 1 year ago

I had my SynologyNAS isolated... Thanks

Anyway, now I have this error: image

Borty97 commented 1 year ago

Finally I used the https://github.com/georgezhao2010/midea_ac_lan Midea AC LAN integration. It works perfect

mill1000 commented 1 year ago

Cool. That extension is a good option, I also have a fork with the above bug fixed and other improvements.

https://github.com/mill1000/midea-ac-py https://github.com/mill1000/midea-msmart