Git Product home page Git Product logo

home-assistant-myfisker's People

Contributors

michaeloe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sripraneeth

home-assistant-myfisker's Issues

License

Could you please add a license for this project?

I would like to build an integration to evcc for reading the charge status from the fisker api. For this it would be nice if I dont need to reverse engineer the whole api by myself.

OS Version pulling (random) vehicle color?

Just installed, this is great, thanks! Interestingly though, when I put my OS version on my dashboard, the value reported is "STEALTH_GREEN". Doubly funny is that my car is actually Sea Grass. I'm using the US region if that makes a difference.

image

Vehicle range flipping back and forth km /miles ?

Hi there and thanks a ton for putting this integration together - it's fantastic ! I did wonder if you or others were seeing something odd around the miles range though ? Mine has been in the garage for the past 12 hours and fully charged but the sensor randomly changes between 383km and 519km (see chart) - i've actually seen it change on the screen as well, it seems that as its polling the sensor it sometimes get one number and sometimes another. I thought maybe the API was sending miles vs. km but 519km is 320 miles so that doesn't seem to be the case.

Thoughts ?
Thanks !!
image

IndexError: list index out of range in ParseProfilesResponse

Thank you for working on a Home Assistant integration!

I've tried installing version 0.0.6 via HACS, but it seems my account is returning unexpectedly empty data for the profiles request, causing a parsing error.

I added some debug logging and here's what I'm seeing:

024-02-16 20:27:41.906 DEBUG (MainThread) [custom_components.my_fisker.config_flow] api.GetProfiles()
2024-02-16 20:27:42.415 DEBUG (MainThread) [custom_components.my_fisker.api] Start GenerateVerifyRequest()
2024-02-16 20:27:42.415 DEBUG (MainThread) [custom_components.my_fisker.api] GenerateVerifyRequest(): messageData={'data': {'token': ''}, 'handler': 'verify'}
2024-02-16 20:27:42.742 DEBUG (MainThread) [custom_components.my_fisker.api] Received response:
{"handler":"verify","data":{"authenticated":true}}
2024-02-16 20:27:42.742 DEBUG (MainThread) [custom_components.my_fisker.api] Sending 'GenerateProfilesRequest'
2024-02-16 20:27:42.742 DEBUG (MainThread) [custom_components.my_fisker.api] Start GenerateProfilesRequest()
2024-02-16 20:27:42.743 DEBUG (MainThread) [custom_components.my_fisker.api] GenerateProfilesRequest(): messageData={'handler': 'profiles'}
2024-02-16 20:27:43.153 DEBUG (MainThread) [custom_components.my_fisker.api] Received response:
{"handler":"profiles","data":[]}
2024-02-16 20:27:43.307 DEBUG (MainThread) [custom_components.my_fisker.api] Start ParseProfilesResponse()
2024-02-16 20:27:43.308 INFO (MainThread) [custom_components.my_fisker.api] data: {'handler': 'profiles', 'data': []}
2024-02-16 20:27:43.308 ERROR (MainThread) [custom_components.my_fisker.config_flow] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/my_fisker/config_flow.py", line 75, in async_step_user
self._userInput["vin"] = await validate_login(
^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/my_fisker/config_flow.py", line 47, in validate_login
vin = await api.GetProfiles()
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/my_fisker/api.py", line 67, in GetProfiles
self.data["profiles"] = self.ParseProfilesResponse(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/my_fisker/api.py", line 149, in ParseProfilesResponse
item1 = data["data"][0]["vin"]

IndexError: list index out of range

Have you seen this before? Anything I can try to debug this?

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.