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.0.tar.gz
(12.6 kB
view hashes)
Built Distribution
Close
Hashes for python_swidget-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ffc741f07be70994f2ca3b19dcbdf011f48715a7266a75d6645b95c0cca94eb |
|
MD5 | 36e213c9a77e4467f7fd015156b3194d |
|
BLAKE2b-256 | 335d31db966028aa6a0b1b6eb8da3402a92f94e4b739fe8c57ee994f14bf3960 |