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.3.tar.gz
(15.8 kB
view hashes)
Built Distribution
Close
Hashes for python_swidget-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 961a353621f1efe28cdf1775065b024cf6e9f9acb51f98be1616f29f9b94de2a |
|
MD5 | 2d5e294f10f1f8407f123119301c913f |
|
BLAKE2b-256 | f1568c1bb9fd2eef093ed34d3f026dd2a3e9727c58dc5d707b463fb767fc457c |