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.1.tar.gz
(12.8 kB
view hashes)
Built Distribution
Close
Hashes for python_swidget-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b609ba415118bf09ffa08b49b4441040fd0b56a4f01ea9b97bd3dbe86e18ff40 |
|
MD5 | f7c3fbd35a6fd5849b2207a95a5ecd9f |
|
BLAKE2b-256 | 2d259c75188df517c673274d874237655d7b8705ed92bf06905018dcfb641385 |