New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Hyundai] maxRange is undefined #7
Comments
Can you run homebridge in debug mode? Want to see what the status update payload looks like: |
Oh, good hunch. Looks like range is undefined in the update payload.
|
Thanks! We may need to bring this over to the bluelinky library, since the type definition they have claims |
It would be timely. Looks like they're actively working on engine.range right now: Hacksore/bluelinky@c326c3f#diff-4bc921cf635defe83396ed691d13ea4c47bd9ed50241618e2cc3a802aa05d03aL274 My first instinct for now on this side would be validation, maybe around: But that would probably be premature before cluing bluelinky in because who knows what engine.range value would be in the undefined case once they decide how they'd like to handle it. |
* Update bluelinky to 6.0.1 Fixes #7 * Bump version
#9 does not fix this for me. I confirmed bluelinky in the plugin was v6.0.1 and even went as far as to reboot the server homebridge is running on. |
Ran homebridge in debug mode and got the same undefined value in the response payload for range as listed above. |
Will wait for Hacksore/bluelinky#106 to be resolved |
@milhaus all set here? |
Oddly I'm still getting that error. homebridge-hyundai-bluelink v1.3.2, node v14.16.1, npm v7.10.0 on debian 10. I notice bluelinky closed out 106 but it wasn't listed in release notes for 7.x I just restarted homebridge to get fresh results and got the undefined error. As a sanity check I did an npm list in the plugins node-modules directory and noticed some busted dependencies. So I did an npm update and restarted homebridge and now I'm getting exciting new errors. I don't know if I just messed up all the perms (forgot I was root) and that's the cause of new errors. |
Ah it looks like the associated fix is in bluelinky 7.2, but the dependency here is 7.1. Will release an update with that dependency bumped shortly |
Describe The Bug:
This error pops up in the logs every time it checks. I've tried plugging in different values, swapping the order of maxRange and VIN so I could make sure there weren't linefeed/whitespace issues with the value, making it a string so I could append "mi" to it. Nothing works to remove the error. Other integer values in the config are fine. The only thing I get in homekit from the plugin is locks and on/off. Vehicle is a 2021 Kona EV.
To Reproduce:
This happens automatically with each check.
Expected behavior:
No error in logs. Charge level reported in HomeKit
Logs:
Plugin Config:
Environment:
The text was updated successfully, but these errors were encountered: