jpasqua / VisibleTesla

Java App to monitor and Control the Tesla Model S
125 stars 41 forks source link

Missing charge state values can cause spurious notifications #102

Closed jpasqua closed 9 years ago

jpasqua commented 9 years ago

Occasionally a charge_state query will return a result with a null value for charging_state. I see this happen most right after the car wakes up. This can lead to a spurious "Charge State Becomes" notification because it appears that the state goes from Disconnected to Unknown to Disconnected. This triggers a Charge State Becomes: Disconnected" notification. The workaround involves special casing the "unknown" state.

jpasqua commented 9 years ago

Fixed