not to be confused with pyShelly
Python 3 Wrapper around the Shelly HTTP api forked from the
original ShellyPy project
that seems to be dead or at least sleeping at the moment.
other packages like pyShelly only support CoAP or MSQT, neither I am comfortable using in personal projects
a simple working example for the Shelly 1 that turns a relay on
import shellypy
device = shellypy.Shelly("192.168.0.5")
device.relay(0, turn=True)a simple working example for the Shelly 1 that request monitor information
import shellypy
device = shellypy.Shelly("192.168.68.121")
deviceMeter = device.meter(0) # request meter information
print(deviceMeter['power']) # print power information
print(deviceMeter['total']) # print total informationother examples are available as well examples/meter.py
- Shelly1
- Shelly1PM
- Shelly2
- Shelly2PM
- Shelly2.5
- Shelly4Pro (untested)
- Shelly Plug (untested)
- Shelly PlugS
- Shelly Bulb (untested)
- Shelly H&T (Gen 1 and Gen 3)
- Shelly Smoke (untested)
- Shelly EM (untested)
- Shelly flood (untested)
- Shelly Sense (documentation is inaccurate, incomplete)
- Shelly RGBW (documentation is incomplete)
this wrapper is best used in closed networks where other solutions are either not an option or not desired give your shelly devices static IP adresses for best results
this project is licensed under the MIT License
feel free to do whatever you want with it