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: Lock: Mudroom Door failed lockStatus (refreshStatus), Error: () #113

Closed bgleonard closed 4 months ago

bgleonard commented 5 months ago

Describe The Bug

No locks show up by default because all 6 of mine are HomeKit enabled. I added one manuallys through Plugin Config - August Device Settings. Now the log shows lockStatus Error for that lock and it's accessory does not reflect reality. The door sensor shows open but the door is closed.

To Reproduce

Install and setup August account in the plugin

Expected behavior

Lock status and sensor status should reflect actual state of the lock

Relevant log output

[27/05/2024, 22:33:42] [August] [DEBUG] Device: Mudroom Door HomeKit Enabled: true, Override HomeKit Enabled: true
[27/05/2024, 22:33:42] [August] Adding new accessory: Mudroom Door Lock ID: DB11882A78774CBE8DC0DE1023865079
[27/05/2024, 22:33:42] [August] [DEBUG] Lock: Mudroom Door Using Debug Mode Logging: debugMode
[27/05/2024, 22:33:42] [August] 15: Mudroom Door Using Platform Config refreshRate: 1800
[27/05/2024, 22:33:42] [August] 15: Mudroom Door Using Default updateRate: 5
[27/05/2024, 22:33:42] [August] 15: Mudroom Door Using Platform Config pushRate: 5
[27/05/2024, 22:33:42] [August] Lock: Mudroom Door Config: {"logging":"debug","hide_lock":true}
[27/05/2024, 22:33:42] [August] [DEBUG] 15: Mudroom Door 2 FirmwareRevision: 1.3.16
[27/05/2024, 22:33:42] [August] 15: Mudroom Door Firmware Version: 1.3.16
[27/05/2024, 22:33:42] [August] [DEBUG] 15: Mudroom Door deviceVersion: 1.3.16
[27/05/2024, 22:33:42] [August] 15 Mudroom Door updateCharacteristic BatteryLevel: 100
[27/05/2024, 22:33:42] [August] 15 Mudroom Door updateCharacteristic StatusLowBattery: 0
[27/05/2024, 22:33:42] [August] 15 Mudroom Door updateCharacteristic ContactSensorState: 1
[27/05/2024, 22:33:42] [August] [DEBUG] August Credentials: {"config":{"apiKey":"example","pnSubKey":"example","installId":"example","idType":"email","augustId":"email@example.com","password":"example","countryCode":"US"}}
[27/05/2024, 22:33:42] [August] [DEBUG] Mudroom Door (DB11882A78774CBE8DC0DE1023865079) uuid:  6d1dc3a2-69cc-440a-a29c-070054e63958
[27/05/2024, 22:33:42] [August] [DEBUG] Mudroom Door External Accessory Mode: false
[27/05/2024, 22:33:42] [August] [DEBUG] device: {"LockName":"Garage Back Door","Type":15,"Created":"2024-01-11T13:42:33.731Z","Updated":"2024-01-11T13:42:33.731Z","LockID":"FB581D87647A4C399E6098046C0A2CEA","HouseID":"example","HouseName":"Our House","Calibrated":false,"timeZone":"America/New_York","battery":0.8035656988849951,"batteryInfo":{"level":0.8035656988849951,"warningState":"lock_state_battery_warning_none","infoUpdatedDate":"2024-02-06T14:35:27.811Z","lastChangeDate":"2023-12-16T02:31:52.000Z","lastChangeVoltage":5770,"deathDate":"2024-12-10T02:31:52.000Z"},"supportsEntryCodes":true,"remoteOperateSecret":"7087d48291da0180932a80e23ce733e5","skuNumber":"BETA211123","macAddress":"98:1B:B5:6C:59:B5","SerialNumber":"LFIA100065","LockStatus":{"status":"unknown"},"currentFirmwareVersion":"1.3.16","homeKitEnabled":true,"zWaveEnabled":false,"isGalileo":false,"OfflineKeys":{"created":[],"loaded":[{"created":"2024-01-11T13:48:46.535Z","key":"e9115a57e3647ab9c651f471982d50a2","slot":1,"UserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","loaded":"2024-01-12T21:42:35.254Z"}],"deleted":[],"loadedhk":[{"key":"979a375a345a0650fed982ce12096bad","slot":257,"UserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","created":"2024-01-11T13:42:33.756Z","loaded":"2024-01-11T13:43:02.933Z"}]},"parametersToSet":{},"users":{"87c09b26-f89c-4337-804c-3e4fffbf3109":{"UserType":"superuser","FirstName":"Brad","LastName":"Example","identifiers":["phone:+5551212","email:mail@example.com"]}},"pubsubChannel":"d7f1fd3b-21f3-42b6-a28c-c6549500b54f","ruleHash":{},"cameras":[],"geofenceLimits":{"ios":{"debounceInterval":90,"gpsAccuracyMultiplier":2.5,"maximumGeofence":5000,"minimumGeofence":100,"minGPSAccuracyRequired":80}},"accessSchedulesAllowed":false,"pins":{"created":[],"loaded":[{"_id":"659ff092af773ab3849d7178","type":"pin","lockID":"FB581D87647A4C399E6098046C0A2CEA","userID":"87c09b26-f89c-4337-804c-3e4fffbf3109","state":"loaded","pin":"example","slot":1,"accessType":"always","callingUserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","createdAt":"2024-01-11T13:43:46.270Z","updatedAt":"2024-01-11T13:43:46.444Z","loadedDate":"2024-01-11T13:43:46.444Z","firstName":"Brad","lastName":"Example","unverified":false}],"disabled":[],"disabling":[],"enabling":[],"deleting":[],"updating":[]},"lockId":"FB581D87647A4C399E6098046C0A2CEA"}
[27/05/2024, 22:33:42] [August] [DEBUG] Device: Garage Back Door HomeKit Enabled: true, device will not be registered. To enable, set overrideHomeKitEnabled to true.
[27/05/2024, 22:33:42] [August] [DEBUG] Unable to Register new device: Garage Back Door Lock ID: FB581D87647A4C399E6098046C0A2CEA
[27/05/2024, 22:33:42] [August] [DEBUG] Check Config to see if lockId is being Hidden.
[27/05/2024, 22:33:42] [August] [DEBUG] 15 Mudroom Door (refreshStatus) lockDetails: {"LockName":"Mudroom Door","Type":15,"Created":"2023-09-29T14:57:50.110Z","Updated":"2023-09-29T14:57:50.110Z","LockID":"DB11882A78774CBE8DC0DE1023865079","HouseID":"example","HouseName":"Our House","Calibrated":false,"timeZone":"America/New_York","battery":0.9520185726469208,"batteryInfo":{"level":0.9520185726469208,"warningState":"lock_state_battery_warning_none","infoUpdatedDate":"2023-09-29T18:37:48.813Z","lastChangeDate":"2023-09-29T14:57:50.110Z","lastChangeVoltage":6200,"deathDate":"2024-09-23T14:57:50.110Z"},"supportsEntryCodes":true,"remoteOperateSecret":"6d09a735154a04b1d84051956323f48f","skuNumber":"BETA211123","macAddress":"98:1B:B5:6C:D3:E6","SerialNumber":"LFIA3002YS","LockStatus":{"status":"unknown"},"currentFirmwareVersion":"1.3.16","homeKitEnabled":true,"zWaveEnabled":false,"isGalileo":false,"OfflineKeys":{"created":[],"loaded":[{"created":"2023-09-29T18:32:54.782Z","key":"454393d0f7f26fe4c36359169459feee","slot":1,"UserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","loaded":"2023-09-29T18:33:12.609Z"}],"deleted":[],"loadedhk":[{"key":"2fba73f095700529d2b42fc2db2bd11a","slot":257,"UserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","created":"2023-09-29T14:57:50.130Z","loaded":"2023-09-29T14:58:20.204Z"}]},"parametersToSet":{},"users":{"87c09b26-f89c-4337-804c-3e4fffbf3109":{"UserType":"superuser","FirstName":"Brad","LastName":"Example","identifiers":["phone:+5551212","email:mail@gexample.com"]}},"pubsubChannel":"624305ab-82ac-4d4a-931c-30ffe6b06b91","ruleHash":{},"cameras":[],"geofenceLimits":{"ios":{"debounceInterval":90,"gpsAccuracyMultiplier":2.5,"maximumGeofence":5000,"minimumGeofence":100,"minGPSAccuracyRequired":80}},"accessSchedulesAllowed":false,"pins":{"created":[],"loaded":[{"_id":"651718520c81936deaa5299c","type":"pin","lockID":"DB11882A78774CBE8DC0DE1023865079","userID":"87c09b26-f89c-4337-804c-3e4fffbf3109","state":"loaded","pin":"example","slot":1,"accessType":"always","callingUserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","createdAt":"2023-09-29T18:32:50.967Z","updatedAt":"2023-09-29T18:33:12.895Z","loadedDate":"2023-09-29T18:33:12.895Z","firstName":"Brad","lastName":"Example","unverified":false}],"disabled":[],"disabling":[],"enabling":[],"deleting":[],"updating":[]},"lockId":"DB11882A78774CBE8DC0DE1023865079"}
[27/05/2024, 22:33:42] [August] 15 Mudroom Door parseStatus
[27/05/2024, 22:33:42] [August] 15 Mudroom Door BatteryLevel: 95, StatusLowBattery: 0
[27/05/2024, 22:33:42] [August] Lock: Mudroom Door Unknown statusCode: {}, Submit Bugs Here: '
      + 'https://tinyurl.com/AugustYaleBug
[27/05/2024, 22:33:42] [August] [DEBUG] Lock: Mudroom Door failed lockStatus (refreshStatus), Error: {}

Config for homebridge-august

{
    "name": "August",
    "credentials": {
        "augustId": "mail@example.com",
        "password": "example",
        "countryCode": "US",
        "installId": "b3d924fe-7152-4491-baca-e938e6301e73",
        "isValidated": true,
        "notice": "Keep your tokens a secret!"
    },
    "options": {
        "devices": [
            {
                "lockId": "3BC36CE361BA45D8B2CF15D8B14D8CCB",
                "configLockName": "Front Door",
                "hide_device": false,
                "lock": {
                    "hide_lock": true
                },
                "overrideHomeKitEnabled": true,
                "logging": "debug"
            },
            {
                "lockId": "DB11882A78774CBE8DC0DE1023865079",
                "configLockName": "Mudroom Door",
                "hide_device": false,
                "lock": {
                    "hide_lock": true
                },
                "overrideHomeKitEnabled": true,
                "external": false,
                "logging": "debug"
            }
        ],
        "refreshRate": 361,
        "pushRate": 2,
        "logging": "debug"
    },
    "platform": "August"
}

Screenshots

No response

Device & Model

Yale Assure Lock 2 fw 1.3.16

Node.js Version

20.12.3

NPM Version

10.5.2

Homebridge Version

1.8.2

Homebridge August Plugin Version

2.2.0

Homebridge Config UI X Plugin Version

Homebridge v1.8.2

Operating System

Debian GNU/Linux Bookworm (12)

donavanbecker commented 5 months ago

@bgleonard, honestly sounds like you need to recalibrate your lock. Or at leas try that and report back.

bgleonard commented 4 months ago

Good suggestion unfortunately it's still reporting unknown lock status. Here's what I've tried on the lock/Yale side of things using plugin v2.2.0. I have 6 Yale Assure locks in my home. One lock (front door) has the Yale doorsense hardware installed. Once I can get the doors open/closed status to work in HomeKit via this plugin I plan to install the other 5.

donavanbecker commented 4 months ago

You can add a device using this plugin even if it is HomeKit enabled there is no reason for you to not connect it to HomeKit. Just set that override.

PoppyS33d commented 4 months ago

Similar issue here. Did anyone figure out how to fix it? I added my 4th gen August (with WiFi bridge) and it works for a few hours to maybe a day in the HomeKit app before it shows the lock as “Open” (when it’s not) and also “Unknown.” Can’t figure it out.

PoppyS33d commented 4 months ago

Similar issue here. Did anyone figure out how to fix it? I added my 4th gen August (with WiFi bridge) and it works for a few hours to maybe a day in the HomeKit app before it shows the lock as “Open” (when it’s not) and also “Unknown.” Can’t figure it out.

To follow up, here’s the red text in my log:

“5 Front Door doorState: undefined, closed: false, open: false”

Note: I don’t use the door ajar sensor.

oransterf commented 4 months ago

Adding my +1 here: experiencing the same issue with a August Home AUG-SL05-M01-S01 August Wi-Fi, (4th Generation)

PoppyS33d commented 4 months ago

Adding my +1 here: experiencing the same issue with a August Home AUG-SL05-M01-S01 August Wi-Fi, (4th Generation)

Yep. I gave up on this plugin and switched to another one that works just fine with my 4th gen. It’s the August plugin v1.7.4 by nancenick. Works a treat.

donavanbecker commented 4 months ago

please try the latest beta

oransterf commented 4 months ago

please try the latest beta

just did, and it seems that there are issues with rate limits:

[6/20/2024, 3:44:59 PM] [August] Lock: Garage Door Sending request to August API: Unlocked
[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: GET failed with: 429
[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: GET failed with: 429
[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: POST failed with: 429
[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: POST failed with: 429
[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: GET failed with: 429
donavanbecker commented 4 months ago

please try the latest beta

just did, and it seems that there are issues with rate limits:


[6/20/2024, 3:44:59 PM] [August] Lock: Garage Door Sending request to August API: Unlocked

[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: GET failed with: 429

[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: GET failed with: 429

[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: POST failed with: 429

[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: POST failed with: 429

[6/20/2024, 3:45:08 PM] [August] Lock: Garage Door Too Many Requests, exceeded the number of requests allowed for a given time window, statusCode: GET failed with: 429

What is your refreshrate set too? I added an option to set it to 0 so you can just rely on the August event updates

oransterf commented 4 months ago

What is your refreshrate set too? I added an option to set it to 0 so you can just rely on the August event updates

It was set at 1. I set it to 0 and using the latest version now. Seems to work. Thank you!

PoppyS33d commented 4 months ago

Thanks for the feedback and updates. I’ll pause my other August plugin and re-try this one! Cheers for the support. If any further issues I’ll update here.

PoppyS33d commented 4 months ago

Thanks for the feedback and updates. I’ll pause my other August plugin and re-try this one! Cheers for the support. If any further issues I’ll update here.

I tried to reinstall the plugin, and couldn't get it to find my second lock, though it did find my first lock. Really annoying.

From the logs:

Total August Locks Found: 2
[6/26/2024, 12:47:20 AM] [August] Adding new accessory: Back Door, Lock ID: C9CAFABE75C141xxxxxxxxxx

So it clearly found both locks, but wouldn't add the second one. I played around with it for an hour and gave up. Went back to the other plugin (homebridge-august-locks) which works perfectly.

donavanbecker commented 4 months ago

Thanks for the feedback and updates. I’ll pause my other August plugin and re-try this one! Cheers for the support. If any further issues I’ll update here.

I tried to reinstall the plugin, and couldn't get it to find my second lock, though it did find my first lock. Really annoying.

From the logs:


Total August Locks Found: 2

[6/26/2024, 12:47:20 AM] [August] Adding new accessory: Back Door, Lock ID: C9CAFABE75C141xxxxxxxxxx

So it clearly found both locks, but wouldn't add the second one. I played around with it for an hour and gave up. Went back to the other plugin (homebridge-august-locks) which works perfectly.

Can you open a new issue with your setups info