Packages

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 `Yeelight.Discover.start`

Current section

Files

Jump to
yeelight lib yeelight.ex
Raw

lib/yeelight.ex

defmodule Yeelight do
@moduledoc """
Documentation for Yeelight.
"""
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
Yeelight.Discover
]
opts = [strategy: :one_for_one, name: Yeelight.Discover.Supervisor]
Supervisor.start_link(children, opts)
end
end