YeelightCli
Remote control of yeelight bulbs in a local network.
Bulbs need turning on remote control through a local network
First of all
The bulbs have to be available to be controlled throught a local network using an open protocol. The easiest way to turn the remote control on is to use a mobile application such as "Yeelight" or "Mi Home".
Here is going to be some screenshots.
Installation
Add this line to your application's Gemfile:
gem 'yeelight_cli'And then execute:
$ bundle
Or install it yourself as:
$ gem install yeelight_cli
Console client usage
Synopsis: yeelight [global options] command [command options] [arguments...]
You can get the full list of options and commands with yeelight -h
Global options
Here is the list of global options you can use for any command:
-
-l lamp_identifierperform a command only for a specific lamp using its identifier -
-r room_nameperform a command only for a specific room -
-g group_nameperform a command only for a specific group -
-s subgroup_nameperform a command only for a specific subgroup -
-d duration_in_msset a duration for command performing a light effect -
-eshow a stack trace in case of error
Commands
-
discoverprints names, ids and icons of all the selected lamps(lamps in the current network by default) screenshot -
graphshows the graph of all the selected lamps and so on
License
The gem is available as open source under the terms of the MIT License.