Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
/ hs1xx Public archive

Control TP-Link HS100/HS110 devices from Ruby

License

Notifications You must be signed in to change notification settings

adamcooke/hs1xx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TP-Link HS100/HS110 API for Ruby

The TP-Link HS100/HS110 is a nice little device for controlling (and monitoring) electrical devices. There's not much (any) documentation about any API for managing the devices.

This is a library I've pieced together from information I've managed to find from the following sources:

Installation

Just install the gem:

gem 'hs1xx'

Usage

plug = HS1xx::Plug.new('10.0.1.2')
plug.on     # => Turns the plug on
plug.off    # => Turns the plug off
plug.on?    # => Is the plug on?
plug.off?   # => Is the plug off

About

Control TP-Link HS100/HS110 devices from Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages