Skip to main content

Library for Shelly smart home devices (Modified version)

Project description

Modified version of pyShelly to suppor offset cover feature.

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)
  • MQTT Server (buildin MQTT server taht devices can connect to directly)
  • MQTT Client (using a MQTT broker)
  • Websocket
  • 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
  • RPC (gen 2 devices)
  • Cloud support (Get names of devices etc)

Devices supported

Gen 1 devices

  • 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)

Plus devices

  • Shelly Plus 1
  • Shelly Plus 1PM
  • Shelly Plus 2
  • Shelly Plus 2PM
  • Shelly Plus i3

Pro devices

  • Shelly Pro 1
  • Shelly Pro 1PM
  • Shelly Pro 2
  • Shelly Pro 2PM
  • Shelly Pro 4PM

Comming soon

  • Shelly TRV
  • Shelly Plus H&T

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 buy Shellies from StyraHem.se or any of the retailers like NetOnNet, Kjell&Company etc.

buy me a coffee

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyShellyEx-1.0.2.tar.gz (37.1 kB view details)

Uploaded Source

File details

Details for the file pyShellyEx-1.0.2.tar.gz.

File metadata

  • Download URL: pyShellyEx-1.0.2.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for pyShellyEx-1.0.2.tar.gz
Algorithm Hash digest
SHA256 66455c4263e0b487b6f031b1e63ecc5d4f834cdcf08bdbb1672a03c60d7f2131
MD5 0f059e1be978cf9a62fae67609f09d15
BLAKE2b-256 79f3e0b0a2536c6f86cf36723c86b8b172370d7192bc0a2af5cc4e84ddea3d0d

See more details on using hashes here.

Supported by

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