https://github.com/happyleavesaoc/python-orvibo
https://github.com/happyleavesaoc/python-orvibo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/happyleavesaoc/python-orvibo
- Owner: happyleavesaoc
- License: mit
- Created: 2015-11-14T18:59:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T22:48:16.000Z (11 months ago)
- Last Synced: 2025-03-29T07:09:49.489Z (about 2 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 36
- Watchers: 11
- Forks: 20
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-orvibo
Control Orvibo devices with Python 3. Currently supports the S20 WiFi Smart Switch.
## Usage
```python
from orvibo.s20 import S20, discoverhosts = 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:
* Additional Orvibo devices.
* Expand S20 functions: Timers, configuration, etc## Disclaimer
Not affiliated with Shenzhen Orvibo Electronics Co., Ltd.