rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.64k stars 550 forks source link

Select NIC for mirobo #509

Open darkspirit510 opened 5 years ago

darkspirit510 commented 5 years ago

Hi all,

I used your library to connect to my Xiaomi vacuum. At the beginning I couldn't find it because my computer had both LAN and WI-FI connected. The mirobo command only used the LAN interface so I wasn't able to find my vacuum. I had to use a VM which I explicitly connected to the WI-FI.

Can you add a parameter to select the NIC for the commands?

rytilahti commented 5 years ago

https://github.com/rytilahti/python-miio/pull/437 is related PR that I prepared when I had the same issue while testing with similar setup as yours.