Skip to content
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

[tesla] "IllegalStateException: Expected a boolean but was NUMBER" for seat_heater_left #4509

Closed
phuongpham opened this issue Jan 4, 2019 · 6 comments

Comments

@phuongpham
Copy link

phuongpham commented Jan 4, 2019

I have Tesla Model S85 2014 and currently running on 2018.48.12.1 d6999f5
The openHAB is running on 2.4.0 and the binding is installed thru paper UI (Tesla binding 2.4)

I currently see this error: 2018-12-24 11:02:53.550 [ERROR] [b.binding.tesla.handler.TeslaHandler] - An exception occurred while parsing data received from the vehicle: 'java.lang.IllegalStateException: Expected a boolean but was NUMBER at line 1 column 460 path $.seat_heater_left'

Similar issue was closed here: https://github.com/openhab/openhab2-addons/issues/3261

But for me it seems like the Tesla API is now back with boolean instead of NUMBER.

@wborn wborn changed the title [Tesla] java.lang.IllegalStateException [tesla] "IllegalStateException: Expected a boolean but was NUMBER" for seat_heater_left Jan 5, 2019
@crystollic
Copy link

Getting the same on Model S P90D same s/w version, although I am sure it was also on previous versions. Also I think the Tesla API is returning a number but the binding expects a boolean. I assume a number between 0-3 to reflect the heater setting?

@phuongpham
Copy link
Author

phuongpham commented Jan 7, 2019

I assume the API changes reflect that it's possible to pre heat the seat thru the tesla app.
So the API also supporting this feature.

@kgoderis
Copy link
Contributor

kgoderis commented Feb 2, 2019

@kgoderis kgoderis closed this as completed Feb 2, 2019
@phuongpham
Copy link
Author

phuongpham commented Feb 2, 2019

@kaikreuzer Fixed by #4781
Great!
Maybe stupid question. But where can I download the fixed version?
@kgoderis ?

@phuongpham
Copy link
Author

Just downloaded the latest snahot from here: https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/binding/org.openhab.binding.tesla/2.5.0-SNAPSHOT/ and I can confirm that the issue is now solved! Thanks

@jpk8201
Copy link

jpk8201 commented Mar 12, 2019

I have also a Tesla S (2015). I replaced the jar file. Unfortunately I still have the error:

An exception occurred while parsing data received from the vehicle: 'java.lang.IllegalStateException: Expected a boolean but was NUMBER at line 1 column 464 path $.seat_heater_left'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants