I am trying the app and the drivers but I have an issue.
When I authenticate with login and pass , I receive the verification code. Then I enter it.
It is the correct code but I get this response on logs:
app:10382024-09-07 15:42:07.084errorconnectToAugust failed -- status code: 409, reason phrase: Conflict: [code:InvalidArgument, message:Invalid code]
app:10382024-09-07 15:42:06.737debugsendVerificationCodeResponse-params [uri:https://api-production.august.com/validate/email, headers:[Accept-Version:0.0.1, x-august-api-key:xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx, x-kease-api-key:xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx, Content-Type:application/json, User-Agent:August/2019.12.16.4708 CFNetwork/1121.2.2 Darwin/19.3.0, x-august-access-token:xxxxxxxxxxxxxxxxxxxxxxx.KecEwt_lpG0iVsZyklfBrc_7tq3XFmsWg-3cvHOe6xA], body:[email:xxxxxxxx@gmail.com, code:968780]]
app:10382024-09-07 15:42:06.721debugsendVerificationCodeResponse()
app:10382024-09-07 15:41:49.726debugreHeader: CF-RAY: 8bf6c676dee2d5fe-IST
app:10382024-09-07 15:41:49.723debugreHeader: Server: cloudflare
app:10382024-09-07 15:41:49.719debugreHeader: Set-Cookie: __cf_bm=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; path=/; expires=Sat, 07-Sep-24 13:11:50 GMT; domain=.august.com; HttpOnly; Secure; SameSite=None
app:10382024-09-07 15:41:49.716debugreHeader: CF-Cache-Status: DYNAMIC
app:10382024-09-07 15:41:49.713debugreHeader: x-response-time: 22
app:10382024-09-07 15:41:49.709debugreHeader: x-august-access-token:xxxxxxxxxxxxx
I don't understand why I get "errorconnectToAugust failed -- status code: 409, reason phrase: Conflict: [code:InvalidArgument, message:Invalid code"
Then I hit "discover". Nothing is discovered but I see actually something is discovered in the logs:
app:10382024-09-07 15:46:07.435infoUpdated Locks, Next Update in 10 min.
app:10382024-09-07 15:46:07.429debugrefreshLocks()
app:10382024-09-07 15:46:07.426debugAll child devices:
app:10382024-09-07 15:46:07.423debugLockStatus: null
app:10382024-09-07 15:46:07.420debugreHeader: CF-RAY: 8bf6ccc0dee0d60b-IST
app:10382024-09-07 15:46:07.417debugreHeader: Server: cloudflare
app:10382024-09-07 15:46:07.414debugreHeader: Set-Cookie:xxxxxx; path=/; expires=Sat, 07-Sep-24 13:16:07 GMT; domain=.august.com; HttpOnly; Secure; SameSite=None
app:10382024-09-07 15:46:07.411debugreHeader: CF-Cache-Status: DYNAMIC
app:10382024-09-07 15:46:07.408debugreHeader: x-response-time: 39
app:10382024-09-07 15:46:07.405debugreHeader: x-august-access-token:xxxx
app:10382024-09-07 15:46:07.400debugreHeader: api-version: 0.0.1
app:10382024-09-07 15:46:07.397debugreHeader: x-xss-protection: 0
app:10382024-09-07 15:46:07.395debugreHeader: referrer-policy: no-referrer
app:10382024-09-07 15:46:07.392debugreHeader: x-permitted-cross-domain-policies: none
app:10382024-09-07 15:46:07.389debugreHeader: x-content-type-options: nosniff
app:10382024-09-07 15:46:07.386debugreHeader: x-download-options: noopen
app:10382024-09-07 15:46:07.384debugreHeader: strict-transport-security: max-age=15552000; includeSubDomains
app:10382024-09-07 15:46:07.381debugreHeader: x-frame-options: SAMEORIGIN
app:10382024-09-07 15:46:07.378debugreHeader: expect-ct: max-age=0
app:10382024-09-07 15:46:07.376debugreHeader: x-dns-prefetch-control: off
app:10382024-09-07 15:46:07.373debugreHeader: content-security-policy: default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests
app:10382024-09-07 15:46:07.370debugreHeader: vary: origin,access-control-request-method,access-control-request-headers
app:10382024-09-07 15:46:07.367debugreHeader: Connection: keep-alive
app:10382024-09-07 15:46:07.364debugreHeader: Transfer-Encoding: chunked
app:10382024-09-07 15:46:07.362debugreHeader: Content-Type: application/json
app:10382024-09-07 15:46:07.359debugreHeader: Date: Sat, 07 Sep 2024 12:46:07 GMT
app:10382024-09-07 15:46:07.355debugreJson: [Calibrated:false, Created:2015-05-20T14:56:41.693Z, HouseID:xxxxxxxxxxxxx, HouseName:Ilker's xHouse, LockID:xxxxxxxxxxxxxxxx, LockName:Front Door, LockStatus:[status:unknown], OfflineKeys:[created:[[UserID:notsuperuser, created:2016-08-19T20:34:41.308Z, key:xxxxxxxxxxxxxx, slot:254]], deleted:, loaded:[[UserID:xxxxxxxxxxxxx, key:xxxxxxxxxx, slot:1]]], SerialNumber:L1GG00012Q, Type:1, Updated:2015-05-20T15:36:54.784Z, accessSchedulesAllowed:false, battery:-1, cameras:, currentFirmwareVersion:788113bb-undefined-0.4.2, geofenceLimits:[ios:[debounceInterval:90, gpsAccuracyMultiplier:2.5, maximumGeofence:5000, minGPSAccuracyRequired:80, minimumGeofence:100]], homeKitEnabled:false, isGalileo:false, macAddress:xxxxx, parametersToSet:[:], pubsubChannel:de318910-fe85-43fe-85c6-62ca9e651221, remoteOperateSecret:xxxxxxxxxxxxxxxxxxxxxx, ruleHash:[:], skuNumber:AUG-SL01-M01-G01, supportsEntryCodes:false, users:[xxxxxx:[FirstName:Ilker, LastName:Aktuna, UserType:superuser, identifiers:[email:xxxxxxxxxxxx@gmail.com, phone:+xxxxxxxx], imageInfo:[original:[format:webp, height:1000, secure_url:https://, url:https://, width:750], thumbnail:[format:webp, height:128, secure_url:https://, url:https://, width:128]]]], zWaveEnabled:false]
app:10382024-09-07 15:46:07.263debugreCode: 200
app:10382024-09-07 15:46:07.029debuggetLock-params [uri:https://api-production.august.com/locks/xxxxx, headers:[Accept-Version:0.0.1, x-august-api-key:xxxxx, x-kease-api-key:xxxx, Content-Type:application/json, User-Agent:August/2019.12.16.4708 CFNetwork/1121.2.2 Darwin/19.3.0, x-august-access-token:xxxx]]
app:10382024-09-07 15:46:07.024debuggetLock(deviceID=xxxxx)
app:10382024-09-07 15:46:07.021debugHouseName: Ilker's House
app:10382024-09-07 15:46:07.018debugHouseID: xxx
app:10382024-09-07 15:46:07.015debugmacAddress: xxxx
app:10382024-09-07 15:46:07.013debugLockName: Front Door
app:10382024-09-07 15:46:07.010debugLockID: xxxxx
app:10382024-09-07 15:46:07.007debugreHeader: CF-RAY: 8bf6ccbe48ca51a8-IST
app:10382024-09-07 15:46:07.004debugreHeader: Server: cloudflare
app:10382024-09-07 15:46:07.001debugreHeader: Set-Cookie: __cf_bm=; path=/; expires=Sat, 07-Sep-24 13:16:07 GMT; domain=.august.com; HttpOnly; Secure; SameSite=None
app:10382024-09-07 15:46:06.998debugreHeader: CF-Cache-Status: DYNAMIC
app:10382024-09-07 15:46:06.995debugreHeader: x-response-time: 15
app:10382024-09-07 15:46:06.992debugreHeader: x-august-access-token: xxxxx
app:10382024-09-07 15:46:06.988debugreHeader: api-version: 0.0.1
app:10382024-09-07 15:46:06.985debugreHeader: x-xss-protection: 0
app:10382024-09-07 15:46:06.982debugreHeader: referrer-policy: no-referrer
app:10382024-09-07 15:46:06.979debugreHeader: x-permitted-cross-domain-policies: none
app:10382024-09-07 15:46:06.976debugreHeader: x-content-type-options: nosniff
app:10382024-09-07 15:46:06.974debugreHeader: x-download-options: noopen
app:10382024-09-07 15:46:06.971debugreHeader: strict-transport-security: max-age=15552000; includeSubDomains
app:10382024-09-07 15:46:06.968debugreHeader: x-frame-options: SAMEORIGIN
app:10382024-09-07 15:46:06.965debugreHeader: expect-ct: max-age=0
app:10382024-09-07 15:46:06.963debugreHeader: x-dns-prefetch-control: off
app:10382024-09-07 15:46:06.960debugreHeader: content-security-policy: default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests
app:10382024-09-07 15:46:06.957debugreHeader: vary: origin,access-control-request-method,access-control-request-headers
app:10382024-09-07 15:46:06.954debugreHeader: Connection: keep-alive
app:10382024-09-07 15:46:06.951debugreHeader: Transfer-Encoding: chunked
app:10382024-09-07 15:46:06.949debugreHeader: Content-Type: application/json
app:10382024-09-07 15:46:06.946debugreHeader: Date: Sat, 07 Sep 2024 12:46:07 GMT
app:10382024-09-07 15:46:06.940debugreJson: [xxxx:[HouseID:xxxxx, HouseName:Ilker's House, LockName:Front Door, UserType:superuser, macAddress:6C:EC:EB:55:43:F4]]
app:10382024-09-07 15:46:06.936debugreCode: 200
app:10382024-09-07 15:46:06.588debuggetLocks-params [uri:https://api-production.august.com/users/locks/mine, headers:[Accept-Version:0.0.1, x-august-api-key:xxxxx, x-kease-api-key:xxxxx, Content-Type:application/json, User-Agent:August/2019.12.16.4708 CFNetwork/1121.2.2 Darwin/19.3.0, x-august-access-token:xxxxx]]
app:10382024-09-07 15:46:06.526debugdiscoverLocks()
app:10382024-09-07 15:46:06.523debugdiscoverDevices()
As you see it finds a house which is created on 2016 and there is a lock named "front door"
However, this is a very old record from 2016
I no longer have that lock.
Now I have another lock with another name created this year.
My new lock is registered with Yale Home app.
So I suspect that August lock and Yale Home have different api endpoints.
ANd probably if I change the endpoint in your code with the correct API url of Yale Home, it will work.
Any ideas on Yale's API endpoint ?