Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Lock: Mudroom Door failed lockStatus (refreshStatus), Error: () #113

Closed
bgleonard opened this issue May 28, 2024 · 14 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@bgleonard
Copy link

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)

@bgleonard bgleonard added the bug Something isn't working label May 28, 2024
@donavanbecker
Copy link
Owner

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

@bgleonard
Copy link
Author

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.

  • I uninstalled this plugin from Homebridge
  • I removed the front door lock from HomeKit and then factory reset it to remove it from my Yale account.
  • I installed this plugin and setup my August account.
  • I went through the Yale app and installed the front door lock. I enabled door sense and went through calibrations. I did not add the lock to HomeKIt
  • I verified the plugin found the new lock and automatically added the device because it was not in HomeKit (per the recent code change).
  • The front door lock battery status appeared correctly in the Homebridge accessories but the door sensor and lock status were wrong (no change from previous experiences). When the door is closed and locked the accessory reports open and unlocked.
  • I checked the logs and the LockStatus was unknown -"LockStatus":{"status":"unknown"}
  • I added the front door lock to HomeKit using the Home app
  • The plugin removed the lock from the Devices list (per the recent code change) but logs still report LockStatus as unknown.
  • I added the lockId to the plugin Config and selected hide lock so I could see the door sensor status (thats my end goal)
    Here's the log from the most recent boot
    [30/05/2024, 11:06:55] [August] [DEBUG] device: {"lockId":"3BC36CE361BA45D8B2CF15D8B14D8CCB","lock":{"hide_lock":true},"overrideHomeKitEnabled":true,"LockName":"Front Door","Type":15,"Created":"2024-05-29T20:36:48.972Z","Updated":"2024-05-29T20:36:48.972Z","LockID":"3BC36CE361BA45D8B2CF15D8B14D8CCB","HouseID":"55f534cd-135d-4fff-a4a5-b0dd40188e9d","HouseName":"Our House","Calibrated":false,"timeZone":"America/New_York","battery":0.5791801094437687,"batteryInfo":{"level":0.5791801094437687,"warningState":"lock_state_battery_warning_none","infoUpdatedDate":"2024-05-29T20:38:54.139Z","lastChangeDate":"2024-05-29T20:36:48.972Z","lastChangeVoltage":6200,"deathDate":"2025-05-24T20:36:48.972Z"},"supportsEntryCodes":true,"remoteOperateSecret":"example","skuNumber":"BETA211123","macAddress":"98:1B:B5:6A:DD:48","SerialNumber":"LFI7Z002Z6","LockStatus":{"status":"unknown"},"currentFirmwareVersion":"1.3.16","homeKitEnabled":true,"zWaveEnabled":false,"isGalileo":false,"OfflineKeys":{"created":[],"loaded":[{"created":"2024-05-29T20:36:48.992Z","key":"example","slot":2,"UserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","loaded":"2024-05-29T20:37:30.329Z"}],"deleted":[],"loadedhk":[{"key":"example","slot":257,"UserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","created":"2024-05-29T20:36:48.994Z","loaded":"2024-05-29T20:37:30.620Z"}]},"parametersToSet":{},"users":{"87c09b26-f89c-4337-804c-3e4fffbf3109":{"UserType":"superuser","FirstName":"Brad","LastName":"example","identifiers":["phone:+1example","email:mail@example.com"]}},"pubsubChannel":"69e6a107-f645-40eb-868c-be24383a9aa9","ruleHash":{},"cameras":[],"geofenceLimits":{"ios":{"debounceInterval":90,"gpsAccuracyMultiplier":2.5,"maximumGeofence":5000,"minimumGeofence":100,"minGPSAccuracyRequired":80}},"accessSchedulesAllowed":false,"pins":{"created":[],"loaded":[{"_id":"665792812c9b582cdda602ac","type":"pin","lockID":"3BC36CE361BA45D8B2CF15D8B14D8CCB","userID":"87c09b26-f89c-4337-804c-3e4fffbf3109","state":"loaded","pin":"example","slot":1,"accessType":"always","callingUserID":"87c09b26-f89c-4337-804c-3e4fffbf3109","createdAt":"2024-05-29T20:39:29.461Z","updatedAt":"2024-05-29T20:39:30.312Z","loadedDate":"2024-05-29T20:39:30.312Z","firstName":"Brad","lastName":"example","unverified":false}],"disabled":[],"disabling":[],"enabling":[],"deleting":[],"updating":[]}} [30/05/2024, 11:06:55] [August] [DEBUG] Device: Front Door HomeKit Enabled: true, Override HomeKit Enabled: true [30/05/2024, 11:06:55] [August] Adding new accessory: Front Door Lock ID: 3BC36CE361BA45D8B2CF15D8B14D8CCB [30/05/2024, 11:06:55] [August] [DEBUG] Lock: Front Door Using Debug Mode Logging: debugMode [30/05/2024, 11:06:55] [August] 15: Front Door Using Platform Config refreshRate: 1800 [30/05/2024, 11:06:55] [August] 15: Front Door Using Default updateRate: 5 [30/05/2024, 11:06:55] [August] 15: Front Door Using Default pushRate: 5 [30/05/2024, 11:06:55] [August] Lock: Front Door Config: {"hide_lock":true} [30/05/2024, 11:06:55] [August] [DEBUG] 15: Front Door 2 FirmwareRevision: 1.3.16 [30/05/2024, 11:06:55] [August] 15: Front Door Firmware Version: 1.3.16 [30/05/2024, 11:06:55] [August] [DEBUG] 15: Front Door deviceVersion: 1.3.16 [30/05/2024, 11:06:55] [August] Lock: Front Door Unknown statusCode: {}, Submit Bugs Here: ' + 'https://tinyurl.com/AugustYaleBug [30/05/2024, 11:06:55] [August] [DEBUG] Lock: Front Door failed lockStatus (refreshStatus), Error: {} [30/05/2024, 11:06:55] [August] 15 Front Door updateCharacteristic BatteryLevel: 100 [30/05/2024, 11:06:55] [August] 15 Front Door updateCharacteristic StatusLowBattery: 0 [30/05/2024, 11:06:55] [August] 15 Front Door updateCharacteristic ContactSensorState: 1 [30/05/2024, 11:06:55] [August] [DEBUG] August Credentials: {"config":{"apiKey":"example","pnSubKey":"sub-c-1030e062-0ebe-11e5-a5c2-0619f8945a4f","installId":"b3d924fe-7152-4491-baca-e938e6301e73","idType":"email","augustId":"mail@example.com","password":"example","countryCode":"US"}} [30/05/2024, 11:06:55] [August] [DEBUG] Front Door (3BC36CE361BA45D8B2CF15D8B14D8CCB) uuid: fc8673c4-b5d6-4b36-9358-f0dd00df46f2 [30/05/2024, 11:06:55] [August] [DEBUG] Front Door External Accessory Mode: undefined

@donavanbecker
Copy link
Owner

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
Copy link

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
Copy link

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
Copy link

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

@PoppyS33d
Copy link

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
Copy link
Owner

please try the latest beta

@oransterf
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link

PoppyS33d commented Jun 26, 2024

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
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants