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.4.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for python_swidget-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dc354c44fa55405c5d4e0b71781f25d5fb25f08813828f99017b7e3da6e2e06 |
|
MD5 | 1e2d7f5a06c76d8553a9f32931a509e7 |
|
BLAKE2b-256 | a66da6684c8923854eacb1f9b30ff7cb48e716c979b37e42a1b3053b34e31785 |