more G-Labs products

Author Topic: Hue light scenes  (Read 2054 times)

May 06, 2014, 08:51:34 PM
Read 2054 times

mvdarend

  • *****
  • Information
  • Hero Member
  • Posts: 431
Not a real APP contribution, just a small code snippet that might be handy for others.

The official Philips Hue App has 4 pre-defined scenes, Energize, Reading, Concentrate and Relax. Below are the HomeGenie ColorHsb codes to reproduce these scenes:

Code: [Select]
// All four are at full brightness

// Energize
hg.Modules.WithName("Light 1")
.Command("Control.ColorHsb").Set("0.52635,.9133,1");

// Reading
hg.Modules.WithName("Light 1")
.Command("Control.ColorHsb").Set("0.23393,.4763,1");

// Concentrate
hg.Modules.WithName("Light 1")
.Command("Control.ColorHsb").Set("0.51649,.1732,1");

// Relax
hg.Modules.WithName("Light 1")
.Command("Control.ColorHsb").Set("0.1997,.8346,1");

« Last Edit: October 24, 2014, 10:00:27 PM by mvdarend »


There are no comments for this topic. Do you want to be the first?