LIFX

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
m
(Messagesend added)
 
(20 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
= Overview =
 
This page is documenting the state of development of the LIFX bulb integration.
 
This page is documenting the state of development of the LIFX bulb integration.
-- Installation notes --
 
Dependencies:
 
  
pip:
+
= Status =
wget https://bootstrap.pypa.io/get-pip.py
+
LIFX White and LIFX Color bulbs are tested and supported.
sudo python get-pip.py
+
  
requests: http://docs.python-requests.org/en/master/
+
Command set: ON, OFF, DIM, SETCOLOR - working fine
sudo pip install requests
+
  
 +
SetColourTemp is implemented, but not yet visible in the UI. You can change it with:
  
 +
/opt/agocontrol/bin/messagesend uuid=<your uuid> command=setcolortemp level=2700
 +
/opt/agocontrol/bin/messagesend uuid=<your uuid> command=setcolortemp level=9000
  
 +
= Installation  =
 +
== Install package ==
 +
sudo apt-get install agocontrol-lifx
  
-- Development history --
+
== Configuration ==
2016-11-16  Connecting bulb to network, not working, trying different suggestions from the net
+
There are two different APIs for LIFX, Cloud based or native LAN. Both offer same functionality, but the LAN interface is much faster.
 +
Configuration for the agocontrol service goes into /etc/opt/agocontrol/conf.d/lifx.conf.
  
2016-11-16 Connecting bulb to network, working after just letting the app wait for 5 minutes
+
=== Cloud interface ===
 +
The Cloud interface is stable
  
2016-11-16  Created API key, basic Python script in place to get bulb info - working
+
==== Cloud service configuration ====
 +
<pre>
 +
[lifx]
 +
API=Cloud
 +
APIKEY=<add_your_key_here>
 +
PollDelay=10                # Seconds between checking e.g. dim level
 +
FadeTime=2.0    # 2 seconds fade time when dimmin up or down
 +
</pre>
  
2016-11-18 Trying out lifx-sdk for LAN communication (UDP/IP)
+
=== LAN interface ===
Dependencies
+
This interface is extremely experimental at the moment and should not be used except for development.
-- https://github.com/smarthall/python-lifx-sdk
+
-- https://pypi.python.org/pypi/bitstruct/3.3.1
+
  
2016-11-18  Able to list devices, turn on and off lights
+
==== Dependencies ====
2016-11-20  Started working on lifxbase.py and lifxnet.py
+
* [https://github.com/mclarkk/lifxlan LIFXLAN SDK] - included in the agocontrol packag, no separate install needed.
2016-11-20  Started working on agolifx.py - on/off working fine
+
 
2016-11-22 Started working on agolifx.py - basic dimming working fine
+
==== LAN service configuration ====
2016-11-23 Added testsuite
+
Example:
 +
<pre>
 +
[lifx]
 +
API=LAN
 +
NumLights=4    # The number of bulbs you have. By setting this, the discovery goes much faster
 +
PollDelay=10    # Seconds between checking e.g. dim level
 +
FadeTime=2.0    # 2 seconds fade time when dimmin up or down
 +
</pre>
 +
 
 +
== Enable and start daemon==
 +
Then enable and start the daemon
 +
  sudo systemctl enable agolifx.service
 +
  sudo systemctl start agolifx.service

Latest revision as of 11:06, 14 January 2017

Contents

[edit] Overview

This page is documenting the state of development of the LIFX bulb integration.

[edit] Status

LIFX White and LIFX Color bulbs are tested and supported.

Command set: ON, OFF, DIM, SETCOLOR - working fine

SetColourTemp is implemented, but not yet visible in the UI. You can change it with:

/opt/agocontrol/bin/messagesend uuid=<your uuid> command=setcolortemp level=2700
/opt/agocontrol/bin/messagesend uuid=<your uuid> command=setcolortemp level=9000

[edit] Installation

[edit] Install package

sudo apt-get install agocontrol-lifx

[edit] Configuration

There are two different APIs for LIFX, Cloud based or native LAN. Both offer same functionality, but the LAN interface is much faster. Configuration for the agocontrol service goes into /etc/opt/agocontrol/conf.d/lifx.conf.

[edit] Cloud interface

The Cloud interface is stable

[edit] Cloud service configuration

[lifx]
API=Cloud
APIKEY=<add_your_key_here>
PollDelay=10                # Seconds between checking e.g. dim level
FadeTime=2.0    # 2 seconds fade time when dimmin up or down

[edit] LAN interface

This interface is extremely experimental at the moment and should not be used except for development.

[edit] Dependencies

  • LIFXLAN SDK - included in the agocontrol packag, no separate install needed.

[edit] LAN service configuration

Example:

[lifx]
API=LAN
NumLights=4     # The number of bulbs you have. By setting this, the discovery goes much faster
PollDelay=10    # Seconds between checking e.g. dim level
FadeTime=2.0    # 2 seconds fade time when dimmin up or down

[edit] Enable and start daemon

Then enable and start the daemon

sudo systemctl enable agolifx.service
sudo systemctl start agolifx.service
Personal tools