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: if validation code starts with zero it fails #54

Closed gopi-ar closed 1 year ago

gopi-ar commented 1 year ago

Describe The Bug

if validation code starts with zero it fails with "if validation code starts with zero it fails"

To Reproduce

Assume Yale / August sends a code starting with 0

Expected behavior

It should wrap the 0 in quotes probably?

Relevant log output

[August] Validated Error: Error: Validation code is invalid, should be six digits

Config for homebridge-august

Default

Screenshots

Removing the install ID and redoing auth where I got a different code from Yale fixed this.

Also, you can add compatibility in your repo to say it works with: YDR 414a YDR 50GA

and the Yale Access App.

Device & Model

Yale

Node.js Version

Node.js v18.15.0

NPM Version

x

Homebridge Version

x

Homebridge August Plugin Version

1.1.0

Homebridge Config UI X Plugin Version

4.5

Operating System

Ubuntu

donavanbecker commented 1 year ago

@gopi-ar Can you submit a PR?

jlg89 commented 1 year ago

Same as https://github.com/donavanbecker/homebridge-august/issues/48