Skip to main content

Library for Shelly smart home devices

Project description

founder-wip buy me a coffee

stability-wip PyPI

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 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.

buy me a coffee

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.10.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

pyShelly-0.2.10-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file pyShelly-0.2.10.tar.gz.

File metadata

  • Download URL: pyShelly-0.2.10.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyShelly-0.2.10.tar.gz
Algorithm Hash digest
SHA256 59d77fee48bae4c066a49a4495681c2b30547f2df3ada67e6c808c96b087fc53
MD5 fe7c2442a5789ff7158ddbbf048b07f0
BLAKE2b-256 3154971ff10407e9d6174cf9fe558b7192689607c4eca169363e01e7c5fbd57c

See more details on using hashes here.

Provenance

File details

Details for the file pyShelly-0.2.10-py3-none-any.whl.

File metadata

  • Download URL: pyShelly-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyShelly-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ca715a7b2d043867592bf5e9c98ff91ea5e363ab60afec55043042e127f2b901
MD5 a74ec0ea948cb7200a190eb7d5f38d17
BLAKE2b-256 b451058c818b78877dcf2f679009c9994ce7f4d5b3eabd1f7fdc329b59921177

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page