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.0.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for python_swidget-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 673aa5bc3cc9a0d8fc54dab1e4c8293347638a2a16e5296a1a27f72647c31982 |
|
MD5 | 4657818dd064c7eb8a2e386e49c3bcee |
|
BLAKE2b-256 | 0c15485f43a40a5d6f5d974d7c2a46b81802345820a5c42a48144fed7ab323cc |