/pyShelly

Library for Shelly smart home devices

Primary LanguagePythonMIT LicenseMIT

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
  • 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
  • Zero configuration

Devices supported

  • Shelly 1
  • Shelly 1 PM (bug in firmware)
  • Shelly 2 (relay or roller mode)
  • Shelly 4
  • Shelly PLUG
  • Shelly BULB
  • Shelly RGBWW
  • Shelly RGBW2
  • Shelly H&T
  • Shelly 2.5 (relay or roller mode)
  • Shelly 2LED (not tested)
  • Shelly PLUG S (not tested)

Usage

shelly = pyShelly()
shelly.cb_device_added.append(device_added)
shelly.open()
shelly.discover()

def device_added(dev):
  print (dev.devType)

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.

buy me a coffee