mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-24 09:57:41 +00:00
Updated group 0 handling to be per hue api requirements.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.bwssystems.HABridge.api.hue;
|
||||
|
||||
public class GroupResponse {
|
||||
private DeviceState action;
|
||||
private String[] lights;
|
||||
private String name;
|
||||
public DeviceState getAction() {
|
||||
return action;
|
||||
}
|
||||
public void setAction(DeviceState action) {
|
||||
this.action = action;
|
||||
}
|
||||
public String[] getLights() {
|
||||
return lights;
|
||||
}
|
||||
public void setLights(String[] lights) {
|
||||
this.lights = lights;
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static GroupResponse createGroupResponse(String[] theLights) {
|
||||
GroupResponse theResponse = new GroupResponse();
|
||||
theResponse.setAction(DeviceState.createDeviceState());
|
||||
theResponse.setName("Lightset 0");
|
||||
theResponse.setLights(theLights);
|
||||
return theResponse;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user