This commit is contained in:
Dawit Gulino 20013954
2018-05-31 16:00:00 +02:00
parent b79a7615d2
commit 2f5b7826d9
11 changed files with 252 additions and 90 deletions

View File

@@ -53,10 +53,18 @@ public class Hue {
}
}
public void setAttribute(String attribute, String value){
/*public void setAttribute(String attribute, String value){
for (String light : allLights.keySet()) {
String callURL = lightsURL + light + "/state";
String body = "{ \""+attribute+"\" : "+value+" }";
String body = "{ \"+attribute+\" : "+value+" }";
Rest.put(callURL, body, "application/json");
}
}*/
public void colorLoop() {
for (String light : allLights.keySet()) {
String callURL = lightsURL + light + "/state";
String body = "{ \"on\" : true, \"effect\" : \"colorloop\" }";
Rest.put(callURL, body, "application/json");
}
}