How To Install python-miio on Debian 12
How To Install python-miio on Debian 12
Only python-miio Version 0.6.0.dev0 PRE-RELEASE is supported on Debian 12 (Bookworm Python 3.11)
source:https://www.matterxiaomi.com/boards/topic/21944/how-to-install-python3-miio-on-debian-12#29736
Table of Contents
Prerequisites - python-miio Version 0.6.0.dev0+
To follow this tutorial, it is recommended that you have the following:
Python 3.12+ installed
Installation - install python-miio via Poetry
Install Poetry
curl -sSL https://install.python-poetry.org | python3 -
/root/.local/bin/poetry --version
output
Poetry (version 1.8.2)
Install python-miio the latest development version from GitHub via Poetry
git clone https://github.com/rytilahti/python-miio.git
cd python-miio
/root/.local/bin/poetry install
output
Installing the current project: python-miio (0.6.0.dev0)
How to Use - execute command via via Poetry
use `poetry shell` to enter the virtualenv
/root/.local/bin/poetry shell
execute commands
debian:~/python-miio# miiocli discover
output
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
source:https://www.matterxiaomi.com/boards/topic/14479/install-poetry-and-the-latest-development-version-python-miio-from-github#29731
useful links
http://localhost:4999/boards/topic/14479/install-poetry-and-the-latest-development-version-python-miio-from-github#29731
http://localhost:4999/boards/topic/21944/how-to-install-python3-miio-on-debian-12#29727
https://installati.one/install-python3-miio-debian-12/
https://python-miio.readthedocs.io/en/latest/discovery.html
Comments
Comments are closed