You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### UPDATED
- Syncing the `.editorconfig` file.
- `parseSensorsTable()` will now skip devices that have a "System/Supervisory" device type.
- Renamed the detector functions to match where should they be called from (Api or Platform).
- Detector reporting url.
- Re-wrote the detector reminder and moved it to after the content.
### FIXED
- Incorrect detection of "Status Tampered" in connection with "Trouble" status.
- Headers for `test-api.ts` and `repl.ts` files.
- `generateFakeReadyButtons()` should not be adding an Arm Night button because this is not available in the portal.
- Type for `StackTracerError` was incorrectly defined.
### ADDED
- Sensor status support for "Tampered".
- Function name type for `detectApiDebugParser()`.
### REMOVED
- Support for "System/Supervisory" because it does not show a status in the summary page.
Due to implementation complexity and platform instability, all Z-Wave accessories connected to the ADT Pulse gateway will not be planned for development or be supported overall. Consider purchasing the [Hubitat Hub](https://hubitat.com) for a seamless setup experience, or read about the [Home Assistant Z-Wave](https://www.home-assistant.io/integrations/zwave_js/) integration.
// If the parsing function may be parsing data incorrectly.
870
+
if(Object.keys(fetchedTableCells).length!==18){
871
+
if(this.#internal.debug){
872
+
debugLog(this.#internal.logger,'api.ts / ADTPulse.getGatewayInformation()','warn','The fetchTableCells() function may be parsing the gateway information incorrectly');
debugLog(this.#internal.logger,'api.ts / ADTPulse.getGatewayInformation()','success',`Successfully retrieved gateway information from "${this.#internal.baseUrl}"`);
// If the parsing function may be parsing data incorrectly.
1082
+
if(Object.keys(fetchedTableCells).length!==5){
1083
+
if(this.#internal.debug){
1084
+
debugLog(this.#internal.logger,'api.ts / ADTPulse.getPanelInformation()','warn','The fetchTableCells() function may be parsing the panel information incorrectly');
debugLog(this.#internal.logger,'api.ts / ADTPulse.getPanelInformation()','success',`Successfully retrieved panel information from "${this.#internal.baseUrl}"`);
// If the parsing function may be parsing data incorrectly.
1311
+
if(isEmptyOrbTextSummary(parsedOrbTextSummary)){
1312
+
if(this.#internal.debug){
1313
+
debugLog(this.#internal.logger,'api.ts / ADTPulse.getPanelStatus()','warn','The parseOrbTextSummary() function may be parsing sensors information incorrectly');
debugLog(this.#internal.logger,'api.ts / ADTPulse.setPanelStatus()','warn','The parseOrbSecurityButtons() function may be parsing the orb security buttons incorrectly');
// Only keep all ready (enabled) orb security buttons.
1597
1655
letreadyButtons=parsedOrbSecurityButtons.filter((parsedOrbSecurityButton): parsedOrbSecurityButton is ADTPulseSetPanelStatusReadyButton=>!parsedOrbSecurityButton.buttonDisabled);
// If the parsing function may be parsing data incorrectly.
1998
+
if(parsedSensorsTable.length<1){
1999
+
if(this.#internal.debug){
2000
+
debugLog(this.#internal.logger,'api.ts / ADTPulse.getSensorsInformation()','warn','The parseSensorsTable() function may be parsing the sensors table incorrectly');
debugLog(this.#internal.logger,'api.ts / ADTPulse.getSensorsInformation()','success',`Successfully retrieved sensors information from "${this.#internal.baseUrl}"`);
// If the parsing function may be parsing data incorrectly.
2250
+
if(parsedOrbSensors.length<1){
2251
+
if(this.#internal.debug){
2252
+
debugLog(this.#internal.logger,'api.ts / ADTPulse.getSensorsStatus()','warn','The parseOrbSensors() function may be parsing the orb sensors incorrectly');
debugLog(this.#internal.logger,'api.ts / ADTPulse.getSensorsStatus()','success',`Successfully retrieved sensors status from "${this.#internal.baseUrl}"`);
debugLog(this.#internal.logger,'api.ts / ADTPulse.armDisarmHandler()','warn','The parseOrbSecurityButtons() function may be parsing the orb security buttons incorrectly');
letreadyButtons=parsedOrbSecurityButtons.filter((parsedOrbSecurityButton): parsedOrbSecurityButton is ADTPulseArmDisarmHandlerReadyButton=>!parsedOrbSecurityButton.buttonDisabled);
2892
2991
2893
2992
// Generate "fake" ready buttons if arming tasks become stuck.
// If the parsing function may be parsing data incorrectly.
3153
+
if(parsedDoSubmitHandlers.length!==2){
3154
+
if(this.#internal.debug){
3155
+
debugLog(this.#internal.logger,'api.ts / ADTPulse.armDisarmHandler()','warn','The parseDoSubmitHandlers() function may be parsing the do submit handlers incorrectly');
0 commit comments