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.3.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for python_swidget-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9727c04bf6076e77f2f5fee87cbe93e64b998bf579d28b980bf24da32a2bb2e3 |
|
MD5 | 0ddc4464fa065d6ec8162f36f473e382 |
|
BLAKE2b-256 | b164924ac7b907829735b6662b2fc4ef7c4bb29f31921d36adb68368fb121c0e |