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

Latest commit

 

History

History
26 lines (18 loc) · 777 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 777 Bytes

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