mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix logging statement (#16984)
Signed-off-by: logresearch <log.researchovo@gmail.com>
This commit is contained in:
parent
6c7832a338
commit
913ce68561
@ -625,7 +625,7 @@ public class VerisureSession {
|
|||||||
+ "($giid: String!) {\n installation(giid: $giid) {\n armState {\n type\n statusType\n date\n name\n changedVia\n allowedForFirstLine\n allowed\n errorCodes {\n value\n message\n __typename\n}\n __typename\n}\n __typename\n}\n}\n";
|
+ "($giid: String!) {\n installation(giid: $giid) {\n armState {\n type\n statusType\n date\n name\n changedVia\n allowedForFirstLine\n allowed\n errorCodes {\n value\n message\n __typename\n}\n __typename\n}\n __typename\n}\n}\n";
|
||||||
|
|
||||||
String queryQLAlarmStatus = createOperationJSON(operation, variables, query);
|
String queryQLAlarmStatus = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for alarm status!");
|
logger.debug("Querying API for alarm status!");
|
||||||
try {
|
try {
|
||||||
VerisureThingDTO thing = postJSONVerisureAPI(url, queryQLAlarmStatus, VerisureAlarmsDTO.class);
|
VerisureThingDTO thing = postJSONVerisureAPI(url, queryQLAlarmStatus, VerisureAlarmsDTO.class);
|
||||||
logger.debug("REST Response ({})", thing);
|
logger.debug("REST Response ({})", thing);
|
||||||
@ -647,7 +647,7 @@ public class VerisureSession {
|
|||||||
VariablesDTO variables = new VariablesDTO();
|
VariablesDTO variables = new VariablesDTO();
|
||||||
variables.setGiid(installationId.toString());
|
variables.setGiid(installationId.toString());
|
||||||
String queryQLSmartLock = createOperationJSON(operation, variables, query);
|
String queryQLSmartLock = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for smart lock status");
|
logger.debug("Querying API for smart lock status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureSmartLocksDTO thing = postJSONVerisureAPI(url, queryQLSmartLock, VerisureSmartLocksDTO.class);
|
VerisureSmartLocksDTO thing = postJSONVerisureAPI(url, queryQLSmartLock, VerisureSmartLocksDTO.class);
|
||||||
@ -696,7 +696,7 @@ public class VerisureSession {
|
|||||||
String query = "query " + operation
|
String query = "query " + operation
|
||||||
+ "($giid: String!) {\n installation(giid: $giid) {\n smartplugs {\n device {\n deviceLabel\n area\n gui {\n support\n label\n __typename\n}\n __typename\n}\n currentState\n icon\n isHazardous\n __typename\n}\n __typename\n}\n}\n";
|
+ "($giid: String!) {\n installation(giid: $giid) {\n smartplugs {\n device {\n deviceLabel\n area\n gui {\n support\n label\n __typename\n}\n __typename\n}\n currentState\n icon\n isHazardous\n __typename\n}\n __typename\n}\n}\n";
|
||||||
String queryQLSmartPlug = createOperationJSON(operation, variables, query);
|
String queryQLSmartPlug = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for smart plug status");
|
logger.debug("Querying API for smart plug status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureSmartPlugsDTO thing = postJSONVerisureAPI(url, queryQLSmartPlug, VerisureSmartPlugsDTO.class);
|
VerisureSmartPlugsDTO thing = postJSONVerisureAPI(url, queryQLSmartPlug, VerisureSmartPlugsDTO.class);
|
||||||
@ -748,7 +748,7 @@ public class VerisureSession {
|
|||||||
+ "($giid: String!) {\n installation(giid: $giid) {\n climates {\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n humidityEnabled\n humidityTimestamp\n humidityValue\n temperatureTimestamp\n temperatureValue\n __typename\n }\n __typename\n}\n}\n";
|
+ "($giid: String!) {\n installation(giid: $giid) {\n climates {\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n humidityEnabled\n humidityTimestamp\n humidityValue\n temperatureTimestamp\n temperatureValue\n __typename\n }\n __typename\n}\n}\n";
|
||||||
|
|
||||||
String queryQLClimates = createOperationJSON(operation, variables, query);
|
String queryQLClimates = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for climate status");
|
logger.debug("Querying API for climate status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureClimatesDTO thing = postJSONVerisureAPI(url, queryQLClimates, VerisureClimatesDTO.class);
|
VerisureClimatesDTO thing = postJSONVerisureAPI(url, queryQLClimates, VerisureClimatesDTO.class);
|
||||||
@ -817,7 +817,7 @@ public class VerisureSession {
|
|||||||
+ "($giid: String!) {\n installation(giid: $giid) {\n doorWindows {\n device {\n deviceLabel\n area\n __typename\n }\n type\n state\n wired\n reportTime\n __typename\n }\n __typename\n}\n}\n";
|
+ "($giid: String!) {\n installation(giid: $giid) {\n doorWindows {\n device {\n deviceLabel\n area\n __typename\n }\n type\n state\n wired\n reportTime\n __typename\n }\n __typename\n}\n}\n";
|
||||||
|
|
||||||
String queryQLDoorWindow = createOperationJSON(operation, variables, query);
|
String queryQLDoorWindow = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for door&window status");
|
logger.debug("Querying API for door&window status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureDoorWindowsDTO thing = postJSONVerisureAPI(url, queryQLDoorWindow, VerisureDoorWindowsDTO.class);
|
VerisureDoorWindowsDTO thing = postJSONVerisureAPI(url, queryQLDoorWindow, VerisureDoorWindowsDTO.class);
|
||||||
@ -868,7 +868,7 @@ public class VerisureSession {
|
|||||||
+ "($giid: String!) {\n installation(giid: $giid) {\n broadband {\n testDate\n isBroadbandConnected\n __typename\n }\n __typename\n}\n}\n";
|
+ "($giid: String!) {\n installation(giid: $giid) {\n broadband {\n testDate\n isBroadbandConnected\n __typename\n }\n __typename\n}\n}\n";
|
||||||
|
|
||||||
String queryQLBroadbandConnection = createOperationJSON(operation, variables, query);
|
String queryQLBroadbandConnection = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for broadband connection status");
|
logger.debug("Querying API for broadband connection status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureThingDTO thing = postJSONVerisureAPI(url, queryQLBroadbandConnection,
|
VerisureThingDTO thing = postJSONVerisureAPI(url, queryQLBroadbandConnection,
|
||||||
@ -893,7 +893,7 @@ public class VerisureSession {
|
|||||||
+ "($giid: String!) {\ninstallation(giid: $giid) {\n userTrackings {\n isCallingUser\n webAccount\n status\n xbnContactId\n currentLocationName\n deviceId\n name\n currentLocationTimestamp\n deviceName\n currentLocationId\n __typename\n}\n __typename\n}\n}\n";
|
+ "($giid: String!) {\ninstallation(giid: $giid) {\n userTrackings {\n isCallingUser\n webAccount\n status\n xbnContactId\n currentLocationName\n deviceId\n name\n currentLocationTimestamp\n deviceName\n currentLocationId\n __typename\n}\n __typename\n}\n}\n";
|
||||||
|
|
||||||
String queryQLUserPresence = createOperationJSON(operation, variables, query);
|
String queryQLUserPresence = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for user presence status");
|
logger.debug("Querying API for user presence status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureUserPresencesDTO thing = postJSONVerisureAPI(url, queryQLUserPresence,
|
VerisureUserPresencesDTO thing = postJSONVerisureAPI(url, queryQLUserPresence,
|
||||||
@ -933,7 +933,7 @@ public class VerisureSession {
|
|||||||
+ "($giid: String!) {\n installation(giid: $giid) {\n mice {\n device {\n deviceLabel\n area\n gui {\n support\n __typename\n}\n __typename\n}\n type\n detections {\n count\n gatewayTime\n nodeTime\n duration\n __typename\n}\n __typename\n}\n __typename\n}\n}\n";
|
+ "($giid: String!) {\n installation(giid: $giid) {\n mice {\n device {\n deviceLabel\n area\n gui {\n support\n __typename\n}\n __typename\n}\n type\n detections {\n count\n gatewayTime\n nodeTime\n duration\n __typename\n}\n __typename\n}\n __typename\n}\n}\n";
|
||||||
|
|
||||||
String queryQLMiceDetection = createOperationJSON(operation, variables, query);
|
String queryQLMiceDetection = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for mice detection status");
|
logger.debug("Querying API for mice detection status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureMiceDetectionDTO thing = postJSONVerisureAPI(url, queryQLMiceDetection,
|
VerisureMiceDetectionDTO thing = postJSONVerisureAPI(url, queryQLMiceDetection,
|
||||||
@ -983,7 +983,7 @@ public class VerisureSession {
|
|||||||
+ "($giid: String!, $offset: Int!, $pagesize: Int!, $eventCategories: [String], $fromDate: String, $toDate: String, $eventContactIds: [String]) {\n installation(giid: $giid) {\n eventLog(offset: $offset, pagesize: $pagesize, eventCategories: $eventCategories, eventContactIds: $eventContactIds, fromDate: $fromDate, toDate: $toDate) {\n moreDataAvailable\n pagedList {\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n gatewayArea\n eventType\n eventCategory\n eventSource\n eventId\n eventTime\n userName\n armState\n userType\n climateValue\n sensorType\n eventCount\n __typename\n }\n __typename\n }\n __typename\n }\n}\n";
|
+ "($giid: String!, $offset: Int!, $pagesize: Int!, $eventCategories: [String], $fromDate: String, $toDate: String, $eventContactIds: [String]) {\n installation(giid: $giid) {\n eventLog(offset: $offset, pagesize: $pagesize, eventCategories: $eventCategories, eventContactIds: $eventContactIds, fromDate: $fromDate, toDate: $toDate) {\n moreDataAvailable\n pagedList {\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n gatewayArea\n eventType\n eventCategory\n eventSource\n eventId\n eventTime\n userName\n armState\n userType\n climateValue\n sensorType\n eventCount\n __typename\n }\n __typename\n }\n __typename\n }\n}\n";
|
||||||
|
|
||||||
String queryQLEventLog = createOperationJSON(operation, variables, query);
|
String queryQLEventLog = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for event log status");
|
logger.debug("Querying API for event log status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureEventLogDTO thing = postJSONVerisureAPI(url, queryQLEventLog, VerisureEventLogDTO.class);
|
VerisureEventLogDTO thing = postJSONVerisureAPI(url, queryQLEventLog, VerisureEventLogDTO.class);
|
||||||
@ -1008,7 +1008,7 @@ public class VerisureSession {
|
|||||||
+ "($giid: String!) {\n installation(giid: $giid) {\n communicationState {\n hardwareCarrierType\n result\n mediaType\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n testDate\n __typename\n }\n __typename\n }\n}";
|
+ "($giid: String!) {\n installation(giid: $giid) {\n communicationState {\n hardwareCarrierType\n result\n mediaType\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n testDate\n __typename\n }\n __typename\n }\n}";
|
||||||
|
|
||||||
String queryQLEventLog = createOperationJSON(operation, variables, query);
|
String queryQLEventLog = createOperationJSON(operation, variables, query);
|
||||||
logger.debug("Quering API for gateway status");
|
logger.debug("Querying API for gateway status");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
VerisureGatewayDTO thing = postJSONVerisureAPI(url, queryQLEventLog, VerisureGatewayDTO.class);
|
VerisureGatewayDTO thing = postJSONVerisureAPI(url, queryQLEventLog, VerisureGatewayDTO.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user