Skip to content
forked from jamez01/tp_link

Control TP-Link SmartHome devices from anywhere in the world

License

Notifications You must be signed in to change notification settings

wwboynton/tp_link

 
 

Repository files navigation

pipeline status

TP_Link

tp_link allows you to interact with TP-Link smart lights.

Installation

Add this line to your application's Gemfile:

gem 'tp_link'

And then execute:

$ bundle

Or inst all it yourself as:

$ gem tp_link

Usage

require 'tp_link'
#
sh=TPLink::SmartHome.new('user' => '[email protected]',
                         'password' => 'password123')

# Get array of TPLink Devices
sh.devices

# Find a device by name:
light = sh.find("kitchen")

# Turn light on
light.on

# Turn light off
light.off

# Dim light to 50%
light.on(50)

Documentation

Contributing

Bug reports and pull requests are welcome on ruby-code.com at https://ruby-code.com/james/tp_link

License

The gem is available as open source under the terms of the MIT License.

About

Control TP-Link SmartHome devices from anywhere in the world

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%