debian 12
git clone https://github.com/rytilahti/python-miio.git
cd python-miio
/root/.local/bin/poetry install
/root/.local/bin/poetry run miiocli
# or use `poetry shell` to enter the virtualenv
/root/.local/bin/poetry shell
output
@debian:~/python-miio# miiocli
(python-miio-py3.11) root@debian:~/python-miio# miiocli
output
debian:~/python-miio# miiocli discover
INFO:miio.miioprotocol:Sending discovery to <broadcast> with timeout of 5s..
INFO:miio.miioprotocol: IP 192.168.2.100 (ID: 3dc69984) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol: IP 192.168.2.114 (ID: 21c66e62) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol: IP 192.168.2.108 (ID: 045b9280) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol: IP 192.168.2.103 (ID: 1c5c4959) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol: IP 192.168.2.105 (ID: 22e4be42) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol: IP 192.168.2.110 (ID: 1c69b97e) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol: IP 192.168.2.113 (ID: 21283c86) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol: IP 192.168.2.107 (ID: 18a6ce8d) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol: IP 192.168.2.109 (ID: 20254443) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:Discovery done
INFO:miio.discovery:Discovering devices with mDNS for 5 seconds...
INFO:miio.discovery:Found 'lumi.gateway.mihk01' at 192.168.2.108, performing handshake
INFO:miio.discovery:Handshake successful! devid: 73110144, ts: 2024-03-17 03:14:00+00:00
come from:
https://python-miio.readthedocs.io/en/latest/discovery.html#installation