homebridge-plugins / homebridge-august

The Homebridge August plugin allows you to access your August/Yale Locks from HomeKit with Homebridge.
ISC License
36 stars 9 forks source link

Bug: Discover Devices 2: TypeError: Cannot convert undefined or null to object #75

Closed adyrobady closed 8 months ago

adyrobady commented 1 year ago

Describe Your Problem

I’ve had the plugin working before but I installed a fresh copy of homebridge and now it doesn’t work. Thank you

Relevant log output

Devices 2: TypeError: Cannot convert undefined or null to object

Config for homebridge-august

No response

Screenshots

No response

Device & Model

I have 12 locks. 1 Yale Conexis 11 Yale connected

Node.js Version

V18.17.1

NPM Version

9

Homebridge Version

V1.61

Homebridge August Plugin Version

V1.21

Homebridge Config UI X Plugin Version

4.60.6

Operating System

Pi

svengrun commented 1 year ago

Also getting this error. Did not do a re-install. Happy to do more debugging.

simonrb2000 commented 11 months ago

I have the same error :(

I have 3x Yale Conexis locks

donavanbecker commented 11 months ago

Can I get more logs?

simonrb2000 commented 11 months ago

This is all that is showing up in the live log. Where else would there be more logs? I have setup debug logs and only extra bits that show are my login details. No errors other than the one below:-

[August] Discover Devices 2: TypeError: Cannot convert undefined or null to object

rightedges commented 11 months ago

Same error as well. Please let us know how to generate more logs. Thanks.

donavanbecker commented 11 months ago

Go to config ui > advance setting, change logs to debug

simonrb2000 commented 11 months ago

Go to config ui > advance setting, change logs to debug

Sorry, can't see how to do that. Only have UI Settings and no debug option there. I set debug under the plugin itself and under Home Bridge settings, Environment Variables there is DEBUG however there is an empty text box next to it.

Update:- I may have broken homebridge. I typed Debug in the box and restarted it.. well it doesn't load now.. whoops Update 2:- It is up and running however nothing new for the August plugin.. same stuff as before.. only contains api keys, passwords, usernames etc.. along with the error:-

[August] Discover Devices 2: TypeError: Cannot convert undefined or null to object

There's lots of debug stuff from other plugins now showing up.

simonrb2000 commented 11 months ago

This is all of it (passwords etc changed)

[02/11/2023, 22:13:39] [August] Initializing August platform...
[02/11/2023, 22:13:39] [August] [DEBUG] Using Config Logging: debug
[02/11/2023, 22:13:39] [August] [DEBUG] Finished initializing platform: August
[02/11/2023, 22:13:39] [August] Platform Config: {"logging":"debug"}
[02/11/2023, 22:13:39] [August] [DEBUG] Using Default Refresh Rate (5 minutes).
[02/11/2023, 22:13:39] [August] [DEBUG] Config OK
[02/11/2023, 22:13:39] Loading 1 accessories...
[02/11/2023, 22:13:39] [DS1019+] Initializing synology accessory...
[02/11/2023, 22:13:39] [DS1019+] Synology DS1019+ finished initializing!
[02/11/2023, 22:13:39] [August] [DEBUG] Executed didFinishLaunching callback
[02/11/2023, 22:13:39] [August] [DEBUG] augustId: si@hotmail.com, installId: 6xxxxxxec5-4ec7-8ebxxxxxx33552, password: xxxxxxcfi4, isValidated: true
[02/11/2023, 22:13:39] [August] [DEBUG] August Credentials: {"config":{"apiKey":"xxxxxxx-47721289d1d9","pnSubKey":"sub-c-10xxxxxxx619f8945a4f","installId":"6axxxxxxx8eb2-8b54272xxxxxx","idType":"email","augustId":"si@hotmail.com","password":"hxxxxxx4","countryCode":"US"}}
[02/11/2023, 22:13:40] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge D29C) is running on port 51873.
FetchError: Status 401 (undefined): undefined
[02/11/2023, 22:13:40] [August] Discover Devices 2: TypeError: Cannot convert undefined or null to object
donavanbecker commented 11 months ago

Same error as well. Please let us know how to generate more logs. Thanks.

Screenshot 2023-11-02 at 5 45 31 PM
rightedges commented 11 months ago

Here is mine:

[11/2/2023, 3:46:08 PM] [August] [DEBUG] Using Config Logging: debug
[11/2/2023, 3:46:08 PM] [August] [DEBUG] Finished initializing platform: August
[11/2/2023, 3:46:08 PM] [August] Platform Config: {"logging":"debug"}
[11/2/2023, 3:46:08 PM] [August] [DEBUG] Using Default Refresh Rate (5 minutes).
[11/2/2023, 3:46:08 PM] [August] [DEBUG] Config OK
[11/2/2023, 3:46:08 PM] [August] [DEBUG] Executed didFinishLaunching callback
[11/2/2023, 3:46:08 PM] [August] [DEBUG] augustId: rightedges@gmail.com, installId: bXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX, password: XXXXXXXXX, isValidated: true
[11/2/2023, 3:46:08 PM] [August] [DEBUG] August Credentials: {"config":{"apiKey":"7XXXXXXXX-XXXX-XXXXX-XXXX-XXXXXXXXXXX","pnSubKey":"sub-c-1XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX","installId":"bXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","idType":"email","augustId":"rightedges@gmail.com","password":"XXXXXXXXX","countryCode":"US"}}
[11/2/2023, 3:46:08 PM] Homebridge v1.6.1 (HAP v0.11.1) (August) is running on port 43273.
[11/2/2023, 3:46:09 PM] [August] Discover Devices 2: TypeError: Cannot convert undefined or null to object
donavanbecker commented 11 months ago

I also need both of your configs to make sure you have everything set up correctly.

Screenshot 2023-11-02 at 6 04 58 PM

Click JSON Config and copy your Config. Please remove any sensitive info.

rightedges commented 11 months ago

Here you go:

{
    "name": "August",
    "credentials": {
        "augustId": "rightedges@gmail.com",
        "password": "XXXXXXXX",
        "contryCode": "US",
        "installId": "bXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        "isValidated": true,
        "notice": "Keep your tokens a secret!"
    },
    "options": {
        "logging": "debug"
    },
    "_bridge": {
        "username": "0E:XX:XX:XX:XX:XX",
        "port": 43273
    },
    "platform": "August"
}
stereoscott commented 11 months ago

I'm sure the "me too" comments aren't much help. Here is my log. Just added this plugin for the first time but couldn't see any devices. Checked the logs and saw this.


successfully
[17/11/2023, 21:14:03] [August] [DEBUG] Using Config Logging: debug
[17/11/2023, 21:14:03] [August] [DEBUG] Finished initializing platform: August
[17/11/2023, 21:14:03] [August] Platform Config: {"logging":"debug"}
[17/11/2023, 21:14:03] [August] [DEBUG] Using Default Refresh Rate (5 minutes).
[17/11/2023, 21:14:03] [August] [DEBUG] Config OK
[17/11/2023, 21:14:03] [August] [DEBUG] Executed didFinishLaunching callback
[17/11/2023, 21:14:03] [August] [DEBUG] augustId: xxx, installId: xxx, password: xxx, isValidated: true
[17/11/2023, 21:14:03] [August] [DEBUG] August Credentials: {"installId":"xxx","augustId":"xxx","password":"xxx","countryCode":"US"}
[17/11/2023, 21:14:03] [August] [DEBUG] August Credentials: {"config":{"apiKey":"xxx","pnSubKey":"sub-c-xxx","installId":"xxx","idType":"email","augustId":"xxx","password":"xxx","countryCode":"US"}}
[17/11/2023, 21:14:04] Homebridge v1.6.1 (HAP v0.11.1) (August) is running on port 59244.
FetchError: Status 401 (undefined): undefined
[17/11/2023, 21:14:04] [August] Discover Devices 2: TypeError: Cannot convert undefined or null to object

EDIT: Sorry, I wasn't very clear. I just meant that I was going to add my own "me too" comment, and I wanted to touch on the fact that I realize it's not super helpful but was going to share my log for additional context :)

adyrobady commented 11 months ago

I’m really sorry I know it doesn’t help anyone. I’m just so desperate to get the plug in working again. I just thought if there’s lots of people with the same problem it may get looked quicker. I’m very happy to make a donation if that helps Thanks Adrian Sent from my iPhone

On 18 Nov 2023, at 02:23, Scott Meves @.***> wrote:



I'm sure the "me too" comments aren't much help. Here is my log. Just added this plugin for the first time but could t see any devices. Checked the logs and saw this.

successfully [17/11/2023, 21:14:03] [August] [DEBUG] Using Config Logging: debug [17/11/2023, 21:14:03] [August] [DEBUG] Finished initializing platform: August [17/11/2023, 21:14:03] [August] Platform Config: {"logging":"debug"} [17/11/2023, 21:14:03] [August] [DEBUG] Using Default Refresh Rate (5 minutes). [17/11/2023, 21:14:03] [August] [DEBUG] Config OK [17/11/2023, 21:14:03] [August] [DEBUG] Executed didFinishLaunching callback [17/11/2023, 21:14:03] [August] [DEBUG] augustId: xxx, installId: xxx, password: xxx, isValidated: true [17/11/2023, 21:14:03] [August] [DEBUG] August Credentials: {"installId":"xxx","augustId":"xxx","password":"xxx","countryCode":"US"} [17/11/2023, 21:14:03] [August] [DEBUG] August Credentials: {"config":{"apiKey":"xxx","pnSubKey":"sub-c-xxx","installId":"xxx","idType":"email","augustId":"xxx","password":"xxx","countryCode":"US"}} [17/11/2023, 21:14:04] Homebridge v1.6.1 (HAP v0.11.1) (August) is running on port 59244. FetchError: Status 401 (undefined): undefined [17/11/2023, 21:14:04] [August] Discover Devices 2: TypeError: Cannot convert undefined or null to object

— Reply to this email directly, view it on GitHubhttps://github.com/donavanbecker/homebridge-august/issues/75#issuecomment-1817331810, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO7OJ7GLK4PH2UB3AOC3SATYFAL2TAVCNFSM6AAAAAA54SXDVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGMZTCOBRGA. You are receiving this because you authored the thread.Message ID: @.***>

Brodie01 commented 11 months ago

Same issue, anything you need from me to assist in troubleshooting please let me know. I have an August 4th gen wifi lock. This is on a fresh install of home bridge, latest and greatest node and npm and fresh install of your plugin.

donavanbecker commented 11 months ago

this is an API issue.

Brodie01 commented 11 months ago

this is an API issue.

On August's side? So its broken for external apps trying to access?

donavanbecker commented 11 months ago

august-api

adyrobady commented 11 months ago

Ok. Thank you. I appreciate your time for looking into it for me

Thanks Adrian Sent from my iPhone

On 22 Nov 2023, at 17:59, Donavan Becker @.***> wrote:



august-apihttps://github.com/hufftheweevil/august-api

— Reply to this email directly, view it on GitHubhttps://github.com/donavanbecker/homebridge-august/issues/75#issuecomment-1823236206, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO7OJ7AAJHZ6YNCBPJ6AG2TYFY4RFAVCNFSM6AAAAAA54SXDVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGIZTMMRQGY. You are receiving this because you authored the thread.Message ID: @.***>

scottgreiner commented 10 months ago

So I'm still having this problem. "Discover Devices 2: TypeError: Cannot convert undefined or null to object" There have been 2 updates to this plug-in but the error continues. Was there a fix that I missed? Any advice?

stereoscott commented 10 months ago

@scottgreiner keep your eyes peeled on https://github.com/hufftheweevil/august-api/issues/6, as that library provides the interface to the August API for this plugin. You can hit the button to get notified if there is any activity on the issue.

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

chrisjameschamp commented 9 months ago

The issue is still occurring for myself and not resolved

Marpanet commented 8 months ago

The first time I install, it was working but after I had to restart Homebridge for another Plugins it started with the message, I dont know if it is a problem from August side after trying to reconnect.

donavanbecker commented 8 months ago

sorry everyone. I am working on redoing the august-api module. If I am successful then I will be able to use it with this plugin.

donavanbecker commented 8 months ago

Release v2.0.0, which is a major change. I am going to close this, if you are still having issues please open a new issue with logs. Thanks!