Skip to content

Bug: Cannot read properties of undefined (reading 'includes') #127

@bgleonard

Description

@bgleonard

Describe The Bug

Plugin cannot read lock status. Battery status and other information apears correct. The plugin reports lock model BETA211123 instead of Yale Assure Lock 2

To Reproduce

Yale Assure Lock 2 with door open/closed contact sensor installed and calibrated. Connected and controlled by HomeKit via Bluetooth

Expected behavior

I am trying to access the locks open/closed contact sensor via HomeKit by using Homebridge. The locked/unlocked status works natively through HomeKit

Relevant log output

The plugin is able to read some information about the lock such as battery status, PIN, home and owner information, but it always reports in the log file "LockStatus":{"status":"unknown"}.


[28/07/2024, 14:52:53] [August] [DEBUG] Lock: Front Door (refreshStatus) lockDetails: {"LockName":"Front Door","Type":15,"Created":"2024-05-29T20:36:48.972Z","Updated":"2024-05-29T20:36:48.972Z","LockID":"123","HouseID":"example","HouseName":"Our House","Calibrated":false,"timeZone":"America/New_York","battery":0.5791801094437687,"batteryInfo":{"level":0.5791801094437687,"warningState":"lock_state_battery_warning_none","infoUpdatedDate":"2024-06-27T00:44:29.413Z","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.20","homeKitEnabled":true,"zWaveEnabled":false,"isGalileo":false,"OfflineKeys":{"created":[],"loaded":[{"created":"2024-05-29T20:36:48.992Z","key":"example","slot":2,"UserID":"example","loaded":"2024-05-29T20:37:30.329Z"}],"deleted":[],"loadedhk":[{"key":"example","slot":257,"UserID":"example","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:+123","email:[email protected]"]}},"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":"example","type":"pin","lockID":"example","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":[]},"lockId":"example"}
[28/07/2024, 14:52:53] [August] Lock: Front Door parseStatus
[28/07/2024, 14:52:53] [August] Lock: Front Door Unknown statusCode: Cannot read properties of undefined (reading 'includes'), Submit Bugs Here: https://tinyurl.com/AugustYaleBug
[28/07/2024, 14:52:53] [August] [DEBUG] Lock: Front Door failed (refreshStatus) lockDetails, Error: TypeError: Cannot read properties of undefined (reading 'includes')
[28/07/2024, 14:52:53] [August] Lock: Front Door pushChanges: Cannot read properties of undefined (reading 'includes')

Config for homebridge-august

{
    "bridge": {
        "name": "Homebridge 5C6E",
        "username": "0E:B7:11:FD:5B:6D",
        "port": 51636,
        "pin": "123",
        "advertiser": "avahi",
        "bind": [
            "eth0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "debug": false,
            "platform": "config"
        },
        {
            "controllers": [
                {
                    "address": "192.168.1.1",
                    "username": "homebridge",
                    "password": "HomeBridgeProtect1"
                }
            ],
            "name": "UniFi Protect",
            "platform": "UniFi Protect",
            "options": [
                "Enable.Video.Transcode.Hardware.D8B3707466A3",
                "Enable.Doorbell.Trigger.D8B3707466A3",
                "Enable.Device.SyncName.D8B3707466A3"
            ]
        },
        {
            "username": "[email protected]",
            "password": "pass",
            "discoverFrequency": 60000,
            "platform": "MobileLink"
        },
        {
            "name": "Smartthings Plug (IK)",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": "xxx-d05e-4d07-xxxx-e22f353a4889",
            "GarageDoorMaxPoll": 40,
            "PollLocksSeconds": 0,
            "PollDoorsSeconds": 0,
            "PollSensorsSeconds": 0,
            "PollSwitchesAndLightsSeconds": 60,
            "PollWindowShadesSeconds": 0,
            "ExposeHumiditySensorForAirConditioners": false,
            "OptionalModeForAirConditioners": "None",
            "platform": "HomeBridgeSmartThings"
        },
        {
            "name": "TplinkSmarthome",
            "addCustomCharacteristics": true,
            "broadcast": "255.255.255.255",
            "deviceTypes": [
                "plug",
                "bulb"
            ],
            "devices": [
                {
                    "host": "192.168.2.191"
                },
                {
                    "host": "192.168.2.225"
                }
            ],
            "devicesUseDiscoveryPort": false,
            "platform": "TplinkSmarthome"
        },
        {
            "platform": "SoundTouchPlugins",
            "name": "SoundTouch",
            "discoverAllAccessories": false,
            "accessories": [
                {
                    "name": "Dining Room Speaker",
                    "room": "Dining Room",
                    "pollingInterval": 2000,
                    "ip": "192.168.1.29",
                    "volume": {
                        "mode": "lightbulb",
                        "onValue": 25,
                        "unmuteValue": 25,
                        "maxValue": 100
                    },
                    "presets": [
                        {
                            "index": 1,
                            "name": "DR1",
                            "enabled": true
                        },
                        {
                            "index": 2,
                            "name": "Dr2",
                            "enabled": true
                        },
                        {
                            "index": 3,
                            "name": "DR3",
                            "enabled": true
                        },
                        {
                            "index": 4,
                            "name": "DR4",
                            "enabled": true
                        },
                        {
                            "index": 5,
                            "name": "DR5",
                            "enabled": true
                        },
                        {
                            "index": 6,
                            "name": "DR6",
                            "enabled": true
                        }
                    ],
                    "sources": []
                },
                {
                    "name": "Office Speaker",
                    "room": "Nicoles Office",
                    "pollingInterval": 2000,
                    "ip": "192.168.1.227",
                    "volume": {
                        "mode": "lightbulb",
                        "onValue": 25,
                        "unmuteValue": 25,
                        "maxValue": 100
                    },
                    "presets": [
                        {
                            "index": 1,
                            "name": "OF1",
                            "enabled": true
                        },
                        {
                            "index": 2,
                            "name": "OF2",
                            "enabled": true
                        },
                        {
                            "index": 3,
                            "name": "OF3",
                            "enabled": true
                        },
                        {
                            "index": 4,
                            "name": "OF4",
                            "enabled": true
                        },
                        {
                            "index": 5,
                            "name": "OF5",
                            "enabled": true
                        },
                        {
                            "index": 6,
                            "name": "OF6",
                            "enabled": true
                        }
                    ],
                    "sources": []
                }
            ],
            "global": {
                "verbose": true,
                "sources": [
                    {
                        "source": "QPLAY",
                        "enabled": false
                    },
                    {
                        "source": "AUX",
                        "enabled": true
                    },
                    {
                        "source": "SIRIUSXM",
                        "enabled": true
                    },
                    {
                        "source": "Amazon Music",
                        "enabled": true
                    }
                ]
            }
        },
        {
            "units": "us",
            "interval": 5,
            "stations": [
                {
                    "nameNow": "WeatherStation",
                    "service": "openweathermap",
                    "key": "example",
                    "locationGeo": [
                        0,
                        0
                    ],
                    "locationCity": "US",
                    "language": "en",
                    "compatibility": "home",
                    "forecast": [
                        "Today",
                        "Tomorrow",
                        "In 2 days",
                        "In 3 days",
                        "In 4 days",
                        "In 5 days"
                    ],
                    "conditionCategory": "simple",
                    "now": true,
                    "extraHumidity": false
                }
            ],
            "platform": "WeatherPlus"
        },
        {
            "name": "Deebot",
            "countryCode": "US",
            "username": "[email protected]",
            "password": "pass",
            "disableDeviceLogging": true,
            "platform": "Deebot"
        },
        {
            "email": "[email protected]",
            "password": "example!",
            "platform": "HatchBabyRest"
        },
        {
            "name": "August",
            "credentials": {
                "augustId": "[email protected]",
                "password": "pass",
                "countryCode": "US",
                "installId": "x-4491-baca-e938e6301e73",
                "isValidated": true,
                "notice": "Keep your tokens a secret!"
            },
            "options": {
                "devices": [
                    {
                        "lockId": "example",
                        "configLockName": "Front Door",
                        "lock": {
                            "hide_lock": true
                        },
                        "overrideHomeKitEnabled": true,
                        "logging": "debug"
                    }
                ],
                "logging": "debug"
            },
            "platform": "August"
        }
    ],
    "disabledPlugins": [
        "homebridge-soundtouch-plugins",
        "homebridge-weather-plus",
        "homebridge-hatch-baby-rest",
        "homebridge-deebot",
        "homebridge-smartthings-ik",
        "homebridge-tplink-smarthome"
    ]
}

Screenshots

No response

Device & Model

Yale Assure Lock 2 fw 1.3.20

Node.js Version

20.14.0

NPM Version

10.5.2

Homebridge Version

1.8.4

Homebridge August Plugin Version

v2.2.7-beta.24

Homebridge Config UI X Plugin Version

v4.56.4

Operating System

Raspbian, Linux homebridgepi 6.1.0-rpi6-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux

Metadata

Metadata

Labels

bugSomething isn't workingpinnedDon't close this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions