@@ -625,7 +625,7 @@ private synchronized void updateAlarmStatus(VerisureInstallation installation) t
625
625
+ "($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 " ;
626
626
627
627
String queryQLAlarmStatus = createOperationJSON (operation , variables , query );
628
- logger .debug ("Quering API for alarm status!" );
628
+ logger .debug ("Querying API for alarm status!" );
629
629
try {
630
630
VerisureThingDTO thing = postJSONVerisureAPI (url , queryQLAlarmStatus , VerisureAlarmsDTO .class );
631
631
logger .debug ("REST Response ({})" , thing );
@@ -647,7 +647,7 @@ private synchronized void updateSmartLockStatus(VerisureInstallation installatio
647
647
VariablesDTO variables = new VariablesDTO ();
648
648
variables .setGiid (installationId .toString ());
649
649
String queryQLSmartLock = createOperationJSON (operation , variables , query );
650
- logger .debug ("Quering API for smart lock status" );
650
+ logger .debug ("Querying API for smart lock status" );
651
651
652
652
try {
653
653
VerisureSmartLocksDTO thing = postJSONVerisureAPI (url , queryQLSmartLock , VerisureSmartLocksDTO .class );
@@ -696,7 +696,7 @@ private synchronized void updateSmartPlugStatus(VerisureInstallation installatio
696
696
String query = "query " + operation
697
697
+ "($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 " ;
698
698
String queryQLSmartPlug = createOperationJSON (operation , variables , query );
699
- logger .debug ("Quering API for smart plug status" );
699
+ logger .debug ("Querying API for smart plug status" );
700
700
701
701
try {
702
702
VerisureSmartPlugsDTO thing = postJSONVerisureAPI (url , queryQLSmartPlug , VerisureSmartPlugsDTO .class );
@@ -748,7 +748,7 @@ private synchronized void updateClimateStatus(VerisureInstallation installation)
748
748
+ "($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 " ;
749
749
750
750
String queryQLClimates = createOperationJSON (operation , variables , query );
751
- logger .debug ("Quering API for climate status" );
751
+ logger .debug ("Querying API for climate status" );
752
752
753
753
try {
754
754
VerisureClimatesDTO thing = postJSONVerisureAPI (url , queryQLClimates , VerisureClimatesDTO .class );
@@ -817,7 +817,7 @@ private synchronized void updateDoorWindowStatus(VerisureInstallation installati
817
817
+ "($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 " ;
818
818
819
819
String queryQLDoorWindow = createOperationJSON (operation , variables , query );
820
- logger .debug ("Quering API for door&window status" );
820
+ logger .debug ("Querying API for door&window status" );
821
821
822
822
try {
823
823
VerisureDoorWindowsDTO thing = postJSONVerisureAPI (url , queryQLDoorWindow , VerisureDoorWindowsDTO .class );
@@ -868,7 +868,7 @@ private synchronized void updateBroadbandConnectionStatus(VerisureInstallation i
868
868
+ "($giid: String!) {\n installation(giid: $giid) {\n broadband {\n testDate\n isBroadbandConnected\n __typename\n }\n __typename\n }\n }\n " ;
869
869
870
870
String queryQLBroadbandConnection = createOperationJSON (operation , variables , query );
871
- logger .debug ("Quering API for broadband connection status" );
871
+ logger .debug ("Querying API for broadband connection status" );
872
872
873
873
try {
874
874
VerisureThingDTO thing = postJSONVerisureAPI (url , queryQLBroadbandConnection ,
@@ -893,7 +893,7 @@ private synchronized void updateUserPresenceStatus(VerisureInstallation installa
893
893
+ "($giid: String!) {\n installation(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 " ;
894
894
895
895
String queryQLUserPresence = createOperationJSON (operation , variables , query );
896
- logger .debug ("Quering API for user presence status" );
896
+ logger .debug ("Querying API for user presence status" );
897
897
898
898
try {
899
899
VerisureUserPresencesDTO thing = postJSONVerisureAPI (url , queryQLUserPresence ,
@@ -933,7 +933,7 @@ private synchronized void updateMiceDetectionStatus(VerisureInstallation install
933
933
+ "($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 " ;
934
934
935
935
String queryQLMiceDetection = createOperationJSON (operation , variables , query );
936
- logger .debug ("Quering API for mice detection status" );
936
+ logger .debug ("Querying API for mice detection status" );
937
937
938
938
try {
939
939
VerisureMiceDetectionDTO thing = postJSONVerisureAPI (url , queryQLMiceDetection ,
@@ -983,7 +983,7 @@ private synchronized void updateEventLogStatus(VerisureInstallation installation
983
983
+ "($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 " ;
984
984
985
985
String queryQLEventLog = createOperationJSON (operation , variables , query );
986
- logger .debug ("Quering API for event log status" );
986
+ logger .debug ("Querying API for event log status" );
987
987
988
988
try {
989
989
VerisureEventLogDTO thing = postJSONVerisureAPI (url , queryQLEventLog , VerisureEventLogDTO .class );
@@ -1008,7 +1008,7 @@ private synchronized void updateGatewayStatus(VerisureInstallation installation)
1008
1008
+ "($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 }" ;
1009
1009
1010
1010
String queryQLEventLog = createOperationJSON (operation , variables , query );
1011
- logger .debug ("Quering API for gateway status" );
1011
+ logger .debug ("Querying API for gateway status" );
1012
1012
1013
1013
try {
1014
1014
VerisureGatewayDTO thing = postJSONVerisureAPI (url , queryQLEventLog , VerisureGatewayDTO .class );
0 commit comments