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

Lock not being detected. "Total August Locks Found: undefined" "TypeError: deviceLists.map is not a function" #1

Closed hrhnick closed 2 years ago

hrhnick commented 2 years ago

Current Situation

Logs

[10/6/2022, 9:31:08 PM] [August] Total August Locks Found: undefined
[10/6/2022, 9:31:08 PM] [August] TypeError: deviceLists.map is not a function

Configuration

{
            "name": "August",
            "credentials": {
                "augustId": "xxxxxxx@xxxxx.com",
                "password": "xxxxxxxxx",
                "validateCode": "xxxxxxx",
                "notice": "Keep your tokens a secret!"
            },
            "options": {
                "logging": "standard"
            },
            "platform": "August"
        },

Environment

Additional Context

No response

donavanbecker commented 2 years ago

can you try latest beta? also please clear out validateCode after installing and get new code.

hrhnick commented 2 years ago
donavanbecker commented 2 years ago

can you get me debug logs?

hrhnick commented 2 years ago
[10/6/2022, 10:18:41 PM] ---
[10/6/2022, 10:18:42 PM] Loaded plugin: homebridge-august@0.1.0-beta.22
[10/6/2022, 10:18:42 PM] Registering platform 'homebridge-august.August'
[10/6/2022, 10:18:42 PM] ---
[10/6/2022, 10:18:44 PM] [August] Initializing August platform...
[10/6/2022, 10:18:44 PM] [August] Using Config Logging: debug
[10/6/2022, 10:18:44 PM] [August] [DEBUG] Finished initializing platform: August
[10/6/2022, 10:18:44 PM] [August] Platform Config: {"logging":"debug","refreshRate":[Undefined],"pushRate":[Undefined]}
[10/6/2022, 10:18:44 PM] [August] [DEBUG] Using Default Refresh Rate (5 minutes).
[10/6/2022, 10:18:44 PM] [August] [DEBUG] Config OK
[10/6/2022, 10:18:44 PM] [August] [DEBUG] Executed didFinishLaunching callback
[10/6/2022, 10:18:44 PM] [August] [DEBUG] {"config":{"apiKey":"xxxxxxxxx","pnSubKey":"xxxxxxxxx","installId":"xxxxxxxxxxxx","idType":"email","augustId":"xxxxx@xxxxxx","password":"xxxxxxxxx"}}
[10/6/2022, 10:18:45 PM] [August] Total August Locks Found: undefined
[10/6/2022, 10:18:45 PM] [August] [DEBUG] August Platform Config Not Set: [Undefined]
[10/6/2022, 10:18:45 PM] [August] TypeError: deviceLists.map is not a function
donavanbecker commented 2 years ago

Can you manually change your config?and just keep the following:

"name": "August",
            "credentials": {
                "augustId": "xxxxxxx@xxxxx.com",
                "password": "xxxxxxxxx",
                "validateCode": "xxxxxxx",
                "notice": "Keep your tokens a secret!"
            },
            "platform": "August"
hrhnick commented 2 years ago

Still hitting "TypeError: deviceLists.map is not a function"

I meant to copy what was there before, it had the debug option but also two other lines, one I believe was a MAC address.

Screenshot 2022-10-06 at 10 52 34 PM
donavanbecker commented 2 years ago

@hrhnick, I am adding this code this.errorLog(`COPY THIS LOG: ${deviceLists}`); into the next beta: 0.1.0-beta.26, copy this code and paste it once you see it. Should be red.

hrhnick commented 2 years ago

@donavanbecker [10/6/2022, 11:11:03 PM] [August] COPY THIS LOG: [object Object]

donavanbecker commented 2 years ago

sorry about that try beta.28

hrhnick commented 2 years ago

Shot them to your email listed at beckersmarthome at icloud dot com

I was not sure what was sensitive/user specific regarding the keys listed and such.

donavanbecker commented 2 years ago

Thanks, can you give next beta a try? and let me know what happens?

hrhnick commented 2 years ago

New error: 10/6/2022, 11:41:33 PM] [August] TypeError: devices is not iterable

donavanbecker commented 2 years ago

I am guessing you only have one lock right?

hrhnick commented 2 years ago

Correct. (I had the WiFi bridge accessory previously configured. But it has been unpaired and removed from my August account.)

donavanbecker commented 2 years ago

can you try adding in your lock id into the config? I will email you what your config should be.

hrhnick commented 2 years ago

Added to the config, now [10/7/2022, 12:00:40 AM] [August] TypeError: a1.map is not a function

donavanbecker commented 2 years ago

okay I think this next fix should fix it. try next beta = v0.1.0-beta.31

hrhnick commented 2 years ago

Same ai.map error on 31.

Happy to try a factory reset on the lock if you think that it would help, but it does work as expected under the homebridge-august-smart-locks plugin.

donavanbecker commented 2 years ago

clear your config and start over.

donavanbecker commented 2 years ago

v1.0.4 should fix your issue.

hrhnick commented 2 years ago

Thanks @donavanbecker! Woke up and indeed 1.0.4 resolved the issue. You can close this out.

I will test the plug-in as well as attempt with the WiFi bridge and report back if anything comes up.