Skip to content

DomQuixote/python-orvibo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-orvibo

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

Usage

from orvibo.s20 import S20

s20 = S20("x.x.x.x") # Discover the IP on your own.
print(s20.on) # Current state (True = ON, False = OFF).
s20.on = True # Turn it on.
s20.on = False # Turn it off.

There is also a command line version to achieve the same, e.g.

python cmd.py --server 1.2.3.4 --switch off
python cmd.py --server 1.2.3.4 --switch on
python cmd.py --server 1.2.3.4 --status

Contributions

Pull requests are welcome. Possible areas for improvement:

  • Discover configured devices (get IPs).
  • Additional Orvibo devices.
  • Expand S20 functions: Timers, configuration, etc

Disclaimer

Not affiliated with Shenzhen Orvibo Electronics Co., Ltd.

About

This adds a HTTP server to the repository for use with openHAB http binding.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%