happyleavesaoc / python-orvibo

MIT License
36 stars 20 forks source link

python-orvibo

Control Orvibo devices with Python 3. Currently supports the S20 WiFi Smart Switch.

Usage

from orvibo.s20 import S20, discover

hosts = discover() # Discover devices on your local network.
s20 = S20("x.x.x.x") # Use a discovered host, or supply a known host.
print(s20.on) # Current state (True = ON, False = OFF).
s20.on = True # Turn it on.
s20.on = False # Turn it off.

Contributions

Pull requests are welcome. Possible areas for improvement:

Disclaimer

Not affiliated with Shenzhen Orvibo Electronics Co., Ltd.