Jump to content

LiFX Tile Support


xKing

Recommended Posts

Y'all, is anyone interested in Tile support?

One of the forum members generously donated a Tile to me so I can implement reasonable Tile support. ISY is not great in processing images (Tiles are essentially 8x8 LED matrixes) so we'll need to be creative :D

For now the only supported function is effect. 2 effects are supported - Flame and Morph. The lifxlan library that we use as a back end does not support tile effects yet (I submitted a PR), so some manual steps are needed for effect support.

1) Update LiFX Node Server to the latest version, make sure to upload ISY profile.

2) Delete existing tile nodes (if ANY)

3) Use of devlist.yaml file is required, there is an example of a Tile entry. (Tiles are not automatically detected right now).

bulbs:
- ip: 10.10.10.33
  mac: 'd0:73:d5:de:ad:be'
  name: TestTile
  type: tile

groups:

4) Following paths are relative to the user you running polyglot as (for example polyglot on polisy or pi on RPi):

# make a test folder
mkdir ~/lifxtest
cd ~/lifxtest

# clone the updated lifxlan library to the test folder
git clone https://github.com/exking/lifxlan.git

# make a link to the temporary lifxlan library
cd ~/.polyglot/nodeservers/LiFX
ln -s ~/lifxtest/lifxlan/lifxlan .

 

5) After node server restart it should add LiFX Tile type nodes and the only extra available command (vs a regular bulb) would be an Effect call. Speed and Duration are adjustable (by default I recommend speed = 3000, duration = 0). Morph palette is hardcoded for now as:

[(0, 65535, 65535, 3500), (7281, 65535, 65535, 3500), (10922, 65535, 65535, 3500), (22209, 65535, 65535, 3500), (43507, 65535, 65535, 3500), (49333, 65535, 65535, 3500), (53520, 65535, 65535, 3500)]

 

Let me know what else (in terms of a Tile support) would be beneficial?

Have a Happy New Year!

Link to comment
Share on other sites

@xKing Thanks for your hard work on this nodeserver. I use it every day to control seventeen A19 and Mini bulbs. My bathrooms have 5 bulbs wired together that are just too bright bright at night even when dimmed. Your nodeserver and ISY allows me to light only 1 bulb with a very warm glow at night. Perfect!

One question:

Is it possible to configure regular bulbs (A19 or mini)  for a "flame" or candle effect?

 

Link to comment
Share on other sites

Sure, become polyglot user first (it will ask for admin's password)

sudo -u polyglot -s

then 

mkdir ~/lifxtest
cd ~/lifxtest
git clone https://github.com/exking/lifxlan.git
cd ~/nodeservers/LiFX/
ln -s ~/lifxtest/lifxlan/lifxlan .

 

Link to comment
Share on other sites

3 hours ago, gviliunas said:

Is it possible to configure regular bulbs (A19 or mini)  for a "flame" or candle effect?

There are no firmware effects for the bulbs, but you can use Waveform command to get it kinda flickering

Link to comment
Share on other sites

@bgrubb1 Well, speaking of tiles - Flame does not take any input on the color palette, but Morph does. Default Morph is (Hue, Saturation, Brightness, Kelvin)

[(0, 65535, 65535, 3500), (7281, 65535, 65535, 3500), (10922, 65535, 65535, 3500), (22209, 65535, 65535, 3500), (43507, 65535, 65535, 3500), (49333, 65535, 65535, 3500), (53520, 65535, 65535, 3500)]

As you can see - the brightness is at max for every color. Do you want me to use the current TileChain brightness instead of the default 65535 ?

 

Link to comment
Share on other sites

Ok, so after a few experiments - it's not really taking the brightness into consideration at the start of the effect, but you can come later and issue a brightness command while the effect is actually running and it takes it :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...