michaeloe / home-assistant-myfisker Goto Github PK
View Code? Open in Web Editor NEWHome Assistant component for Fisker Ocean cars
License: Apache License 2.0
Home Assistant component for Fisker Ocean cars
License: Apache License 2.0
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.
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.