Brandawg93 / homebridge-fordpass

Control your Ford vehicle in HomeKit using Homebridge.
GNU General Public License v3.0
61 stars 15 forks source link

[Bug]: Unable to add HomeKit Bridge #256

Open malriddell opened 1 month ago

malriddell commented 1 month ago

Describe the bug

I went through all the instructions for generating accounts. Everything seems good. Issue occurs when the Bridge tries to get information about my Truck. It is a Gas-Powered Truck but it throws a few complaints.

When I try to add the Bridge to HomeKit, I get the error "Unable to Add Accessory: Make sure your iPhone is connected to Wi-Fi, then try pairing again". I am pretty sure the service is dying when it tries to figure out info on my truck.

Debug Output

Log Output

[13/06/2024, 12:04:29] Homebridge v1.8.2 (HAP v0.12.1) (homebridge-fordpass) is running on port 36744. AssertionError [ERR_ASSERTION]: iid cannot be undefined for characteristic 'Charging State' at ChargingState.Characteristic.internalHAPRepresentation (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3094:11) at ChargingState. (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3067:25) at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:195:27) at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:176:57) at /var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:169:75 at new Promise () at Object.__awaiter (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:165:16) at ChargingState.Characteristic.toHAP (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:1372:24) at _loop_1 (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:931:24) at /var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Service.js:455:21 [13/06/2024, 12:04:32] [homebridge-fordpass] Child bridge process ended [13/06/2024, 12:04:32] [homebridge-fordpass] Process Ended. Code: 1, Signal: null [13/06/2024, 12:04:39] [homebridge-fordpass] Restarting Process... [13/06/2024, 12:04:40] [homebridge-fordpass] Launched child bridge with PID 459711 [13/06/2024, 12:04:40] Registering platform 'homebridge-fordpass.FordPass' [13/06/2024, 12:04:40] [homebridge-fordpass] Loaded homebridge-fordpass v2.0.0 child bridge successfully [13/06/2024, 12:04:40] Loaded 1 cached accessories from cachedAccessories.0EBD451D5347. [13/06/2024, 12:04:40] [homebridge-fordpass] Configuring accessory My Truck [13/06/2024, 12:04:41] Homebridge v1.8.2 (HAP v0.12.1) (homebridge-fordpass) is running on port 36744. [13/06/2024, 12:04:55] [homebridge-fordpass] Vehicle info failed with error: ERR_BAD_REQUEST TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined at Hash.update (node:internal/crypto/hash:116:11) at Object.generate (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/uuid.ts:11:11) at FordPassPlatform. (/var/lib/homebridge/node_modules/homebridge-fordpass/src/index.ts:337:27) at Generator.next () at fulfilled (/var/lib/homebridge/node_modules/homebridge-fordpass/dist/index.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:95:5) [13/06/2024, 12:04:55] [homebridge-fordpass] Child bridge process ended [13/06/2024, 12:04:55] [homebridge-fordpass] Process Ended. Code: 1, Signal: null [13/06/2024, 12:05:02] [homebridge-fordpass] Restarting Process...

Steps to reproduce

  1. Just follow the steps to install.

Device Type

Raspberry Pi

iOS Version

17.5.1

Bug Persistence

Consistently

Last Working Version

No response

github-actions[bot] commented 6 days ago

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 3 days