Project

hs1xx

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Control TP-Link HS100/110 devices
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0
 Project Readme

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