Update state error messages Homes, update gateway login

This commit is contained in:
BWS Systems
2019-05-30 15:45:35 -05:00
parent 5f6bfae41a
commit 2d3fac691b
19 changed files with 101 additions and 55 deletions

View File

@@ -86,7 +86,7 @@ public class HTTPHome implements Home {
log.warn("Error on calling url to change device state: " + anUrl);
responseString = new Gson().toJson(HueErrorResponse.createResponse("6", "/lights/" + lightId,
"Error on calling url to change device state", "/lights/"
+ lightId + "state", null, null).getTheErrors(), HueError[].class);
+ lightId + "/state", null, null).getTheErrors(), HueError[].class);
}
if(isDevMode)
@@ -95,7 +95,7 @@ public class HTTPHome implements Home {
log.warn("HTTP Call to be presented as http(s)://<ip_address>(:<port>)/payload, format of request unknown: " + theUrl);
responseString = new Gson().toJson(HueErrorResponse.createResponse("6", "/lights/" + lightId,
"Error on calling url to change device state", "/lights/"
+ lightId + "state", null, null).getTheErrors(), HueError[].class);
+ lightId + "/state", null, null).getTheErrors(), HueError[].class);
}
return responseString;