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.4.tar.gz
.
File metadata
- Download URL: aioiotprov-0.0.4.tar.gz
- Upload date:
- Size: 12.7 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.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07542d3407734c669d6cb9117ab728f1d36584d0003ee3eff84002b3efc8c9d8 |
|
MD5 | 8cf84914905409abb130eb6e872a5b78 |
|
BLAKE2b-256 | 6267c5844123fc63d58fdf9e57bc7a901707ec4976629b6d9d504da74c40de41 |
Provenance
File details
Details for the file aioiotprov-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: aioiotprov-0.0.4-py3-none-any.whl
- Upload date:
- Size: 23.4 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.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f993bc8104bb6c924d25e1c547ba3c2812a792d8c6734698d14ebdb1afba786 |
|
MD5 | c5a16e14846690f04edfd1aa7c1b5117 |
|
BLAKE2b-256 | 7e4b990ab2a23727a902473823ca52df14489afb7545ac6ac6af1a999afa7ed6 |