Python API for Swidget smart devices
Project description
python-swidget
A library to manage Swidget smart devices
Basic Usage
Connect to the device using http/ https
dev = SwidgetDimmer(host=host, token_name='x-secret-key', secret_key='password', use_https=True, use_websockets=False)
dev.update()
dev.turn_on()
dev.close()
Connect to the device using websockets
dev = SwidgetDimmer(host=host, token_name='x-secret-key', secret_key='password', use_https=True, use_websockets=True)
dev.start()
dev.update()
dev.turn_on()
dev.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_swidget-1.0.2.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for python_swidget-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbcb0e1709593c10991dc4f971a696182f304f8ce1f7efa701bfa0a02c22c2ae |
|
MD5 | 287e40494da95393098ae67d97a70402 |
|
BLAKE2b-256 | 68b54e111f19920afd353acef7708f2ff33b810be1f17548af42b6e1e959ce13 |