Skip to main content

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

Later

# 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.

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

aioiotprov-0.0.1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

aioiotprov-0.0.1-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file aioiotprov-0.0.1.tar.gz.

File metadata

  • Download URL: aioiotprov-0.0.1.tar.gz
  • Upload date:
  • Size: 13.2 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

Hashes for aioiotprov-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2eb3e7a4d058031b9dc2a3348276817afe3b88f45f9b0782eced4ccac35c18bf
MD5 7fba2b587a56a761c0be25666448a2cd
BLAKE2b-256 fd5d917755ef143bbbe6c9f2428f7f4e0a04bb7505a84dc5405e62864ac5485e

See more details on using hashes here.

Provenance

File details

Details for the file aioiotprov-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: aioiotprov-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.1 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

Hashes for aioiotprov-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1282edab8e937fd946eb752b1d8d7dec6ddd64e1b6c986195f2c238d6d533647
MD5 473b5649089c03f5209cdcb05baadcec
BLAKE2b-256 c42b2789d5337817d999da0d891083d60141c4b2e76513f4d24675fc37a7e7e1

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page