Skip to content

Library for Shelly smart home devices

License

Notifications You must be signed in to change notification settings

allistermaguire/pyShelly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • MQTT Client
  • 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
  • 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 Plus 1
  • Shelly Plus 1PM
  • Shelly Pro 4PM
  • 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 buy Shellies from StyraHem.se or any of the retailers like NetOnNet, Kjell&Company etc.

buy me a coffee

About

Library for Shelly smart home devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%