mrjackyliang / homebridge-adt-pulse

Homebridge security system platform for ADT Pulse
Apache License 2.0
35 stars 7 forks source link

[Bug]: Error loading the plug in #140

Closed itessler closed 4 months ago

itessler commented 4 months ago

Pre-check confirmation

Your email address

ira@tessler.net

Tell me exactly what happened

[3/8/2024, 8:48:00 AM] [ADT Pulse] Plugin is unable to initialize due to an invalid platform configuration. [3/8/2024, 8:48:00 AM] [ADT Pulse] If you just upgraded from "v2 to v3" or from "v3 to v3.1", please update your configuration. [3/8/2024, 8:48:00 AM] [ADT Pulse] Carefully observe the error below. The answer you are looking for is there. [ { "code": "invalid_type", "expected": "array", "received": "undefined", "path": [ "options" ], "message": "Required" }, { "code": "invalid_type", "expected": "array", "received": "undefined", "path": [ "sensors" ], "message": "Required" }

Plugin version

3.2.9

Homebridge version

1.7.0

Node.js® version

18.19.0

Output of the "test-api" command

[ADT Pulse] INFO: test-api.ts - Attempt 1: Finding the Homebridge config file in "/homebridge/config.json" ...
[ADT Pulse] INFO: test-api.ts - Attempt 2: Finding the Homebridge config file in "/var/lib/homebridge/config.json" ...
[ADT Pulse] INFO: test-api.ts - Attempt 3: Finding the Homebridge config file in "/home/ira/.homebridge/config.json" ...
[ADT Pulse] ERROR: test-api.ts - Unable to find a parsable Homebridge config file with a validated "ADTPulse" platform ...
[ADT Pulse] WARNING: test-api.ts - If you just upgraded from "v2 to v3" or from "v3 to v3.1", please update your configuration ...
[ADT Pulse] WARNING: test-api.ts - Carefully observe the error below. The answer you are looking for is there ...
{
  "success": false,
  "error": {
    "issues": [
      {
        "code": "invalid_type",
        "expected": "array",
        "received": "undefined",
        "path": [
          "options"
        ],
        "message": "Required"
      },
      {
        "code": "invalid_type",
        "expected": "array",
        "received": "undefined",
        "path": [
          "sensors"
        ],
        "message": "Required"
      }
    ],
    "name": "ZodError"
  }
}

########################################################################
#####       Test has failed! Please check the error response       #####
#####  above, attempt to resolve them, then run this tester again  #####
########################################################################
npm notice 
npm notice New minor version of npm available! 10.2.3 -> 10.5.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.5.0
npm notice Run npm install -g npm@10.5.0 to update!
npm notice

Captured logs relevant to this report

[3/8/2024, 8:48:00 AM] [ADT Pulse] Plugin is unable to initialize due to an invalid platform configuration.
[3/8/2024, 8:48:00 AM] [ADT Pulse] If you just upgraded from "v2 to v3" or from "v3 to v3.1", please update your configuration.
[3/8/2024, 8:48:00 AM] [ADT Pulse] Carefully observe the error below. The answer you are looking for is there.
[
  {
    "code": "invalid_type",
    "expected": "array",
    "received": "undefined",
    "path": [
      "options"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "array",
    "received": "undefined",
    "path": [
      "sensors"
    ],
    "message": "Required"
  }

Post-check confirmation

Legal Agreements

itessler commented 4 months ago

Config file:

{ "name": "ADT Pulse", "subdomain": "portal", "username": "ira@tessler.net", "password": "redacted", "fingerprint": "redacted "speed": 1, "_bridge": { "username": "0E:1D:ED:FC:5C:56", "port": 35692 }, "platform": "ADTPulse" }

mrjackyliang commented 4 months ago

@itessler You are missing the options and sensors settings as mentioned in the error message. They must be there even if you don't have any.

itessler commented 4 months ago

Thank you! I got it to work.

On Mar 8, 2024, at 9:32 AM, Jacky Liang @.***> wrote:

@itessler https://github.com/itessler You are missing the options and sensors settings as mentioned in the error message. They must be there even if you don't have any.

— Reply to this email directly, view it on GitHub https://github.com/mrjackyliang/homebridge-adt-pulse/issues/140#issuecomment-1985797940, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMPTUOZIFWKINZWLGKJARLYXHDX5AVCNFSM6AAAAABEM4KPSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVG44TOOJUGA. You are receiving this because you were mentioned.

github-actions[bot] commented 2 months ago

Due to inactivity, this issue will be locked and marked as resolved. If you have any further questions or inquiries, please feel free to open a new issue.