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

@@ -187,7 +187,7 @@ public class HarmonyHome implements Home {
log.warn("Should not get here, no harmony configured");
responseString = "[{\"error\":{\"type\": 6, \"address\": \"/lights/" + lightId
+ "\",\"description\": \"Should not get here, no harmony configured\", \"parameter\": \"/lights/"
+ lightId + "state\"}}]";
+ lightId + "/state\"}}]";
} else {
if (anItem.getType().trim().equalsIgnoreCase(DeviceMapTypes.HARMONY_ACTIVITY[DeviceMapTypes.typeIndex])) {
RunActivity anActivity = null;
@@ -202,7 +202,7 @@ public class HarmonyHome implements Home {
log.warn("Should not get here, no harmony hub available");
responseString = "[{\"error\":{\"type\": 6, \"address\": \"/lights/" + lightId
+ "\",\"description\": \"Should not get here, no harmony hub available\", \"parameter\": \"/lights/"
+ lightId + "state\"}}]";
+ lightId + "/state\"}}]";
} else {
if (!myHarmony.startActivity(anActivity)) {
if (resetHub(myHarmony)) {
@@ -212,7 +212,7 @@ public class HarmonyHome implements Home {
+ ", please restart...");
responseString = "[{\"error\":{\"type\": 6, \"address\": \"/lights/" + lightId
+ "\",\"description\": \"Could not communicate with harmony\", \"parameter\": \"/lights/"
+ lightId + "state\"}}]";
+ lightId + "/state\"}}]";
}
}
}
@@ -265,7 +265,7 @@ public class HarmonyHome implements Home {
+ ", please restart...");
responseString = "[{\"error\":{\"type\": 6, \"address\": \"/lights/" + lightId
+ "\",\"description\": \"Could not communicate with harmony\", \"parameter\": \"/lights/"
+ lightId + "state\"}}]";
+ lightId + "/state\"}}]";
}
}
}