forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checks for accepted command typs for HSB and Decimal types as well a…
…s reports on HSB types, also adds support for returning the main system group ("0"). fixes openhab#1261, fixes openhab#1266 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
- Loading branch information
1 parent
79e9245
commit 88040e6
Showing
3 changed files
with
132 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...nhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/api/HueGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.openhab.io.hueemulation.internal.api; | ||
|
||
/** | ||
* Hue API group object | ||
* | ||
* @author Dan Cunningham | ||
* | ||
*/ | ||
public class HueGroup { | ||
public HueState state; | ||
public String type = "LightGroup"; | ||
public String name; | ||
public String[] lights; | ||
public HueState action; | ||
|
||
public HueGroup(String name, String[] lights, HueState action) { | ||
this.name = name; | ||
this.lights = lights; | ||
this.action = action; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters