Library/utility to help provision various IoT devices.
Project description
# aioiotprov
A library/utility to provision IoT devices
This is early day. Currently it can provision TP-Link smartplugs, Broadlink IR blasters, Sonoff switches running the Tasmota firmware, Shelly devices and E-Trix power monitors
This uses nmcli or wpa_cli to control and configure WIFI access. This means this will work only with Linux, and then again not all. It is working on a RaspberryPi running Debian Stretch (No NetworkManager) and works on a laptop ruunning Ubuntu 18.10
When using nmcli, it is possible to use a connected WiFi adapter, this has not yet been tested with wpa_cli
I hope to add soon: Lifx, Tuya
# Installation
We are on PyPi so
pip3 install aioiotprov
# Running
You can just run it by doing
python3 -m aioiotprov “My SSID” “My Secret Key”
If you want to set user, password and for sonoff, MQTT, do something like
python3 -m aioiotprov -u user -p password “My SSID” “My Secret Key” -o “sonoff:mqtt=on,user=mqttuser,password=mqttpass,host=somehost,port=1883,client=DVES_XXXXXX,topic=sonoff-XXXXXX,full topic=blabla/%prefix%/%topic%/”
For Shellies,
python3 -m aioiotprov -u user -p password “My SSID” “My Secret Key” -o “shelly:mqtt=on,user=mqttuser,password=mqttpass,host=somehost,port=1883”
Setting option will only works with plugins that can handle those.
# How it works
Mostly each plugin knows what SSID to llok for. If one of the needed SSID is found, aioiotprov will connect to the SSID and hand over provisioning duties to the plugin.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aioiotprov-0.0.3.tar.gz
.
File metadata
- Download URL: aioiotprov-0.0.3.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8ddb8b97b66d6e88e0b71b170a6efdc81334c215602be3bebaa6fb7818cc46 |
|
MD5 | 669cd346b772e55aa633126a0c08848e |
|
BLAKE2b-256 | 0e000aa5133e492fbfbc1f98b5b91cc5afc3add0e08a0812cdd6b0f88c049840 |
Provenance
File details
Details for the file aioiotprov-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: aioiotprov-0.0.3-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0de3a37c48f9fb822ba0eb99064e383324398142d4d56239defaabb857c76d5f |
|
MD5 | c24ec9fcec9d760b3bb528ae77f4749a |
|
BLAKE2b-256 | 3ea71fb08a44631a079ccb7dfdf2fd4b1d7b5a45ad39e548256e87eaa1a01bc1 |