SteffeyDev / homebridge-hyundai-bluelink

Homebridge plugin for Hyundai BlueLink
Apache License 2.0
26 stars 13 forks source link

remote start won't work. #359

Open cmorozcogmailcom opened 7 months ago

cmorozcogmailcom commented 7 months ago

Describe The Bug:

When trying to remote start there are many errors thrown that show in the logs To Reproduce:

try to start the vehicle from the apple homekit Expected behavior:

i expect the car to start Logs: 4/6/2024, 6:27:30 PMHyundai Bluelink BridgeHyundaiStarting Vehicle 4/6/2024, 6:27:31 PMHyundai Bluelink BridgeHyundaiERRORStart Fail GotError [ParseError]: Unexpected token < in JSON at position 0 in "https://api.telematics.hyundaiusa.com//ac/v2/rcs/rsc/start":

The request / response that are contrary to the W... at EventEmitter. (/var/lib/hoobs/hyundaibluelinkbridge/node_modules/got/source/as-promise.js:65:26) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) { host: 'api.telematics.hyundaiusa.com', hostname: 'api.telematics.hyundaiusa.com', method: 'POST', path: '//ac/v2/rcs/rsc/start', socketPath: undefined, protocol: 'https:', url: 'https://api.telematics.hyundaiusa.com//ac/v2/rcs/rsc/start', gotOptions: { path: '//ac/v2/rcs/rsc/start', protocol: 'https:', slashes: true, auth: null, host: 'api.telematics.hyundaiusa.com', port: null, hostname: 'api.telematics.hyundaiusa.com', hash: null, search: null, query: null, pathname: '//ac/v2/rcs/rsc/start', href: 'https://api.telematics.hyundaiusa.com//ac/v2/rcs/rsc/start', retry: { retries: [Function (anonymous)], methods: [Set], statusCodes: [Set], errorCodes: [Set] }, headers: { 'user-agent': 'okhttp/3.12.0', access_token: 'w6xxxxxx__', client_id: 'xxxxx20', host: 'api.telematics.hyundaiusa.com', registrationid: 'H00xxxxxxKA091467', gen: '2', username: 'cxxxxxail.com', vin: 'Kxxxxx467', 'appcloud-vin': 'KMxxxxx', language: '0', to: 'ISS', encryptflag: 'false', from: 'SPA', brandindicator: 'H', bluelinkservicepin: '0852', offset: '-4', accept: 'application/json', 'accept-encoding': 'gzip, deflate', 'content-type': 'application/json', 'content-length': 187 }, hooks: { beforeRequest: [], beforeRedirect: [], beforeRetry: [], afterResponse: [], beforeError: [], init: [] }, decompress: true, throwHttpErrors: false, followRedirect: true, stream: false, form: false, json: true, cache: false, useElectronNet: false, method: 'POST', body: '{"Ims":0,"airCtrl":1,"airTemp":{"unit":1,"value":"70"},"defrost":true,"heating1":1,"igniOnDuration":15,"seatHeaterVentInfo":null,"username":"cmorozco@gmail.com","vin":"KMHE14L26KA091467"}' }, statusCode: 200, statusMessage: 'OK' } 4/6/2024, 6:27:34 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@On] The write handler for the characteristic 'On' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:27:34 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:27:37 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:27:40 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@On] The write handler for the characteristic 'On' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:27:43 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:27:46 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@On] The write handler for the characteristic 'On' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:27:46 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:27:52 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@On] The write handler for the characteristic 'On' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:27:52 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:27:55 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:28:01 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:28:05 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:28:10 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:28:14 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:28:20 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:28:23 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:28:29 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:28:32 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:28:38 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:28:41 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:28:47 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:28:50 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:28:56 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:28:59 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:29:02 PMCamera FFmpeg BridgeERROR[stem5] The image snapshot handler for the given accessory is slow to respond! See https://homebridge.io/w/JtMGR for more info. 4/6/2024, 6:29:05 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:29:08 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:29:11 PMFordpass BridgeFordPassstatus 4/6/2024, 6:29:12 PMCamera FFmpeg BridgeERROR[stem2] The image snapshot handler for the given accessory is slow to respond! See https://homebridge.io/w/JtMGR for more info. 4/6/2024, 6:29:14 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:29:17 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:29:24 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:29:27 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:29:33 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:29:36 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:29:42 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:29:45 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:29:51 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! 4/6/2024, 6:29:54 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' was slow to respond! 4/6/2024, 6:30:00 PMHyundai Bluelink BridgeERROR[Hyundai Bluelink Bridge 9B76@Lock Target State] The write handler for the characteristic 'Lock Target State' on the accessory '2019 SONATA PLUGIN HYBRID' didn't respond at all!. Please check that you properly call the callback! ``` Show the Homebridge logs here, remove any sensitive information. ``` logs shown **Plugin Config:** { "platform": "Hyundai", "remoteStart": { "igniOnDuration": 15, "heating1": true, "defrost": true, "airCtrl": true }, "credentials": { "username": "xxxxxxl.com", "password": "xxxxxxx", "region": "US", "brand": "hyundai", "pin": "0852" }, "vehicles": [ { "vin": "KMxxxxxx", "maxRange": 600 } ] } ```json Show your Homebridge config.json here, remove any sensitive information. ``` not sure where this is.... i'm on hoobs. **Screenshots:** ![image](https://github.com/SteffeyDev/homebridge-hyundai-bluelink/assets/32968992/20b112ff-17fe-4257-91e5-65840faf151c) Screenshot 2024-04-06 at 6 33 01 PM **Environment:** hoobs * **Plugin Version**: * homebridge@1.7.0 Hyundai bluelink 1.4.1 * **Homebridge Version**: * 1.7.0 * **Node.js Version**: * node -v v16.20.2 * **NPM Version**: * npm -v 8.19.4 * **Operating System**: uname -a Linux hoobs 5.15.84-sunxi #trunk SMP Mon Feb 20 20:01:08 EST 2023 armv7l GNU/Linux

cmorozcogmailcom commented 7 months ago

i figured out how to get it working if anyone is interested