Library for Shelly smart home devices
Project description
pyShelly
Library for Shelly smart home devices. Using CoAP for auto discovery and status updates.
This library was created for Shelly Plugins for Home Assistant and Telldus Tellstick Net/zNet v2.
Features
- Discover devices
- Monitor status
- Monitor switch status
- Control (turn on/off etc)
- Run only locally
- Support user name and password
- Coexist with Shelly Cloud and Shelly app
- Support static and dynamic ip address
- mDns and MQTT discovery
- Cloud support (Get names of devices etc)
Devices supported
- Shelly 1
- Shelly 1 PM (bug in firmware)
- Shelly 1L
- Shelly Addon for 1/1PM, temp and humidity
- Shelly 2 (relay or roller mode)
- Shelly 4 Pro
- Shelly PLUG
- Shelly PLUG S
- Shelly BULB
- Shelly RGBWW
- Shelly RGBW2
- Shelly H&T
- Shelly EM
- Shelly 2.5 (relay or roller mode)
- Shelly 2LED
- Shelly Flood
- Shelly Door/Window
- Shelly Door/Window 2
- Shelly Dimmer
- Shelly Dimmer 2
- Shelly EM
- Shelly 3EM
- Shelly DUO
- Shelly Vintage
- Shelly i3
- Shelly Button 1
- Shelly Gas
- Shelly Air (not tested)
Usage
from pyShelly import pyShelly
def device_added(dev,code):
print (dev," ",code)
shelly = pyShelly()
print("version:",shelly.version())
shelly.cb_device_added.append(device_added)
shelly.start()
shelly.discover()
while True:
pass
Feedback
Please give us feedback on info@styrahem.se or Facebook groups: Shelly grupp (Swedish) or Shelly support group (English)
Founder
This plugin is created by the StyraHem.se, the Swedish distributor of Shelly. In Sweden you can bye Shellies from StyraHem.se or any of the retailers like Kjell&Company, m.nu.
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
pyShelly-0.2.20.tar.gz
(32.0 kB
view details)
Built Distribution
pyShelly-0.2.20-py3-none-any.whl
(39.2 kB
view details)
File details
Details for the file pyShelly-0.2.20.tar.gz
.
File metadata
- Download URL: pyShelly-0.2.20.tar.gz
- Upload date:
- Size: 32.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94772e9d08a6b85db204ced8dfd593e013caf4289eec320cd7f385446063d813 |
|
MD5 | 9583c8edb6709faad8a5ab0101048bcc |
|
BLAKE2b-256 | 78d76eb92469dc8f8bc8669992ef8ebeb99f70115695a81d1fbd4e3a6c5e4673 |
Provenance
File details
Details for the file pyShelly-0.2.20-py3-none-any.whl
.
File metadata
- Download URL: pyShelly-0.2.20-py3-none-any.whl
- Upload date:
- Size: 39.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f365a9d4c38e2cb97c888e5d9e39247587ff8ce46d4fcb0792b22c58ef2813ca |
|
MD5 | ab0495771e9fd36c17f79ecddf5a829b |
|
BLAKE2b-256 | a373384eed9d2cd1aa52446f7caebed10876260ed93f5a4a31199f04943ebd08 |