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.2.2.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for python_swidget-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89520f3879d9a17576fbeda2348fafae27330f52edcc226c7dc90db9fbb3a240 |
|
MD5 | aa0c59a45bd0415d698eb0d7142dc07f |
|
BLAKE2b-256 | 50cd72a1d070fe193f5edb7fba51ddad66e3da91d8dc4312907f612e0b0ab119 |