mill1000 / midea-msmart

Python library for local control of Midea (and associated brands) smart air conditioners.
MIT License
49 stars 2 forks source link

firewall is preventing discovery #129

Closed ebeighe closed 3 months ago

ebeighe commented 3 months ago

I ran msmart-ng discover on my "test" system, and it was able to locate my window ac just fine. When i tried it on my "production" system, which is on the same LAN, it fails:

INFO:msmart.cli:Discovering all devices on local network.
ERROR:msmart.cli:No devices found.

with that 2nd line coming up after a couple of seconds delay. eventually, it dawned on me, the test system doesn't have any firewall. Disabling the firewall allows it to work as expected.

My question is what rule does it need in the firewall to work as expected?

mill1000 commented 3 months ago

Hi there. Discovery works via UDP broadcast on ports 6445 and 20086.