Yeelight
This is a library to comunicate with yeelight lamps using Elixir.
For discovering the lights it uses a UPnP server that should be started using Discover.start“
# start the discovery server
Discover.start
# Get the device list
devices = Discover.devices
# Send a command
Command.toggle |> Command.sendTo(device)Installation
The package can be installed
by adding yeelight to your list of dependencies in mix.exs:
def deps do
[
{:yeelight, "~> 0.1.3"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/yeelight.
TODO
- Finish all possible commands