homebridge-august
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -30,2 +30,9 @@ { | ||
}, | ||
"validateCode": { | ||
"title": "August Verification Code", | ||
"type": "string", | ||
"x-schema-form": { | ||
"type": "password" | ||
} | ||
}, | ||
"notice": { | ||
@@ -37,3 +44,3 @@ "title": "Notice", | ||
}, | ||
"required": ["augustId", "password", "notice"] | ||
"required": ["augustId", "password", "validateCode", "notice"] | ||
} | ||
@@ -51,3 +58,4 @@ }, | ||
"credentials.augustId", | ||
"credentials.password" | ||
"credentials.password", | ||
"credentials.validateCode" | ||
] | ||
@@ -54,0 +62,0 @@ } |
@@ -132,3 +132,3 @@ "use strict"; | ||
}); | ||
this.warnLog(this.august); | ||
this.warnLog(JSON.stringify(this.august)); | ||
// If this is the first time you're using this installId, you need to authorize and validate: | ||
@@ -144,12 +144,12 @@ if (!this.config.credentials?.validateCode) { | ||
const myLocks = await this.august.locks(); | ||
this.warnLog(myLocks); | ||
myLocks.forEach(device => { | ||
this.warnLog(JSON.stringify(myLocks)); | ||
for (const device of myLocks) { | ||
const lockId = Object.keys(myLocks)[0]; | ||
this.august.lock(lockId); | ||
this.warnLog(lockId); | ||
this.warnLog(device); | ||
this.warnLog(JSON.stringify(lockId)); | ||
this.warnLog(JSON.stringify(device)); | ||
this.debugLog(`Discovered ${device.LockName} (${lockId}) ${device.UserType} ${device.macAddress} ${device.macAddress} ` | ||
+ `@ ${device.HouseName} (${device.HouseID})`); | ||
this.createLock(device, uuid); | ||
}); | ||
} | ||
} | ||
@@ -156,0 +156,0 @@ catch (e) { |
{ | ||
"displayName": "Homebridge August", | ||
"name": "homebridge-august", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "The [Homebridge](https://homebridge.io) August plugin allows you to access your [August](https://august.com) & [Yale](https://shopyalehome.com) device(s) from HomeKit.", | ||
@@ -6,0 +6,0 @@ "author": "donavanbecker", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74144
680