Describe The Bug:
It is no longer possible to use this Homebridge plugin for a Kia account in the EU. This is due to the retirement of the UVO app to be replaced by Kia Connect. The upstream bluelinky library has been updated (v8.1.1) but this plugin remains on version 7.5.0.
To Reproduce:
Attempt to use with an EU Kia Account
Expected behavior:
Car features to be usable via HomeKit.
Logs:
[2023-09-03 20:06:56] warn: @EuropeanBrandAuthStrategy.login: Cannot find the argument userId, please use the following url and connect from a browser.
[2023-09-03 20:06:56] warn: https://prd.eu-ccapi.kia.com:8080/api/v1/user/oauth2/authorize?response_type=code&state=test&client_id=fdc85c00-0a2f-4c64-bcb4-2cfb1500730a&redirect_uri=https://prd.eu-ccapi.kia.com:8080/api/v1/user/oauth2/redirect
[2023-09-03 20:06:56] error: @EuropeController.login: sign in with EuropeanBrandAuthStrategy failed with error Error: @EuropeanBrandAuthStrategy.login: Cannot find the argument userId in https://prd.eu-ccapi.kia.com:8080/web/v1/user/integration/auth?&locale=en.
Please use the following url and connect from a browser, it may probably ask you to "Change your password" or "Accept the new conditions"
Once done, try again.
https://prd.eu-ccapi.kia.com:8080/api/v1/user/oauth2/authorize?response_type=code&state=test&client_id=fdc85c00-0a2f-4c64-bcb4-2cfb1500730a&redirect_uri=https://prd.eu-ccapi.kia.com:8080/api/v1/user/oauth2/redirect
[03/09/2023, 20:06:57] [Hyundai] Client Error R [ManagedBluelinkyError]: @EuropeController.login: [400] Bad Request on [POST] https://prd.eu-ccapi.kia.com:8080/api/v1/user/signin - {"errId":"1ea88dae-1be4-4192-9d12-b62de4a0d2b8","errCode":"4003","errMsg":"Invalid values"}
at U (/usr/local/lib/node_modules/homebridge-hyundai-bluelink/node_modules/bluelinky/dist/index.js:17:11700)
at ne.<anonymous> (/usr/local/lib/node_modules/homebridge-hyundai-bluelink/node_modules/bluelinky/dist/index.js:17:39834)
at Generator.throw (<anonymous>)
at a (/usr/local/lib/node_modules/homebridge-hyundai-bluelink/node_modules/bluelinky/dist/index.js:17:136)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
source: GotError [HTTPError]: Response code 400 (Bad Request)
at EventEmitter.<anonymous> (/usr/local/lib/node_modules/homebridge-hyundai-bluelink/node_modules/got/source/as-promise.js:74:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
host: 'prd.eu-ccapi.kia.com:8080',
hostname: 'prd.eu-ccapi.kia.com',
method: 'POST',
path: '/api/v1/user/signin',
socketPath: undefined,
protocol: 'https:',
url: 'https://prd.eu-ccapi.kia.com:8080/api/v1/user/signin',
gotOptions: {
path: '/api/v1/user/signin',
protocol: 'https:',
slashes: true,
auth: null,
host: 'prd.eu-ccapi.kia.com:8080',
port: '8080',
hostname: 'prd.eu-ccapi.kia.com',
hash: null,
search: null,
query: null,
pathname: '/api/v1/user/signin',
href: 'https://prd.eu-ccapi.kia.com:8080/api/v1/user/signin',
retry: [Object],
headers: [Object],
hooks: [Object],
decompress: true,
throwHttpErrors: true,
followRedirect: true,
stream: false,
form: false,
json: true,
cache: false,
useElectronNet: false,
method: 'POST',
body: '{"email":"blah","password":"blah-blah”}',
cookieJar: [CookieJar]
},
statusCode: 400,
statusMessage: 'Bad Request',
headers: {
'ccsp-request-id': '1ea88dae-1be4-4192-9d12-b62de4a0d2b8',
'ccsp-span-id': '',
'content-length': '92',
'content-type': 'application/json',
date: 'Sun, 03 Sep 2023 19:06:57 GMT',
vary: 'Origin',
'x-ratelimit-limit': '0',
'x-ratelimit-remaining': '0',
'x-ratelimit-reset': '0',
connection: 'close',
'set-cookie': [Array]
},
body: {
errId: '1ea88dae-1be4-4192-9d12-b62de4a0d2b8',
errCode: '4003',
errMsg: 'Invalid values'
}
}
}
Describe The Bug: It is no longer possible to use this Homebridge plugin for a Kia account in the EU. This is due to the retirement of the UVO app to be replaced by Kia Connect. The upstream bluelinky library has been updated (v8.1.1) but this plugin remains on version 7.5.0.
To Reproduce: Attempt to use with an EU Kia Account
Expected behavior: Car features to be usable via HomeKit.
Logs: