Skip to content

Files

This branch is 13 commits behind rytilahti/python-miio:master.

devtools

Devtools

This directory contains tooling useful for developers

PCAP parser (parse_pcap.py)

This tool parses PCAP file and tries to decrypt the traffic using the given tokens. Requires typer, dpkt, and rich. Token option can be used multiple times. All tokens are tested for decryption until decryption succeeds or there are no tokens left to try.

python pcap_parser.py <pcap file> --token <token> [--token <token>]

MiOT generator

This tool generates some boilerplate code for adding support for MIoT devices

  1. If you know the model, use python miottemplate.py download <model> to download the description file.
  1. python miottemplate.py print <description file>.json prints out the siid/piid/aiid information from the spec file