timothyle97 / Invoxia-HA

Invoxia tracker integration for Home Assistant.
5 stars 3 forks source link

Problems Accessing Invoxia #3

Open heap73 opened 1 year ago

heap73 commented 1 year ago

Hi Timoty, first of all thanks for the nice job. Im trying your integration and wondering if it still works as I am receiving a login error.

scooper1 commented 1 year ago

is there any fix for the config flow login error
thanks

ThibautLM commented 11 months ago

Hi! same comment as the people above. Itwould be really cool to be able to integrate invoxia into home assisant! thanks in advance

merlinpimpim commented 11 months ago

It doesn't work at all

MagnusErler commented 9 months ago

What is not working? It works fine for me

merlinpimpim commented 9 months ago

image

Unexpected error when trying to enter my username/password

MagnusErler commented 9 months ago

What does the log say?

merlinpimpim commented 9 months ago

What does the log say?

This:

2024-01-06 13:29:46.229 ERROR (MainThread) [custom_components.invoxia] Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/gps_tracker/client/datatypes.py", line 38, in form obj = cls(data) ^^^^^^^^^^^ TypeError: TrackerConfig.init() missing 1 required positional argument: 'network_config' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/config/custom_components/invoxia/config_flow.py", line 68, in async_step_user await validate_input(self.hass, user_input) File "/config/custom_components/invoxia/config_flow.py", line 39, in validate_input await client.get_devices() File "/usr/local/lib/python3.11/site-packages/gps_tracker/client/asynchronous.py", line 153, in get_devices return [Device.get(item) for item in data] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gps_tracker/client/asynchronous.py", line 153, in return [Device.get(item) for item in data] ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gps_tracker/client/datatypes.py", line 123, in get return form(Device._registry[device_data.pop("type")], device_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gps_tracker/client/datatypes.py", line 38, in form obj = cls(data) ^^^^^^^^^^^ File "", line 10, in init _setattr('tracker_config', __attr_converter_tracker_config(tracker_config)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gps_tracker/client/datatypes.py", line 386, in _tracker_config_converter return form(TrackerConfig, val) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gps_tracker/client/datatypes.py", line 49, in form raise UnknownAnswerScheme(data, err.args[0], cls) from err gps_tracker.client.exceptions.UnknownAnswerScheme: It appears that one of your devices has fields which are not currently recognized. Please open an issue at https://gitlab.com/ezlo.picori/gps_tracker with the following content: { "mode": "235", "color": 0, "icon": 10, "notify_position": true, "notify_long_walk": false, "network": "lora", "network_region": "5", "firmware_path": "http://developer.invoxia.com/update/tracker/update.pup", "board_name": "LWT1v2", "usage": "vehicle" } TrackerConfig.init() missing 1 required positional argument: 'network_config' when instantiating . Obfuscate any sensitive data by replacing letters by 'a' and digits by '0' if needed.

MagnusErler commented 9 months ago

Please do the following

It appears that one of your devices has fields which are not currently recognized.
Please open an issue at https://gitlab.com/ezlo.picori/gps_tracker with the following content:
{
"mode": "235",
"color": 0,
"icon": 10,
"notify_position": true,
"notify_long_walk": false,
"network": "lora",
"network_region": "5",
"firmware_path": "http://developer.invoxia.com/update/tracker/update.pup",
"board_name": "LWT1v2",
"usage": "vehicle"
}
merlinpimpim commented 9 months ago

done https://gitlab.com/ezlo.picori/gps_tracker/-/issues/8

ezlo-picori commented 8 months ago

Hi,

I updated the underlying gps_tracker to version 0.9.0 which hopefully will fix these issues after @merlinpimpim report.

You will need to update the manifest.json fill by setting "requirements": ["gps-tracker==0.9.0"] and by incrementing the line "version": "1.0.0" to a any value (e.g. 2.0.0).

merlinpimpim commented 8 months ago

Hi,

I updated the underlying gps_tracker to version 0.9.0 which hopefully will fix these issues after @merlinpimpim report.

You will need to update the manifest.json fill by setting "requirements": ["gps-tracker==0.9.0"] and by incrementing the line "version": "1.0.0" to a any value (e.g. 2.0.0).

Super, it works! (Note: you need to restart HA after making these changes).

Supplementary question: I have 2 trackers in my Invoxia account but only 1 is shown in the integration. How can I get both? If this isn't possible, is it possible to choose which of the 2 I'd prefer to retrieve in HA? image

Thank you

merlinpimpim commented 8 months ago

Hi, I updated the underlying gps_tracker to version 0.9.0 which hopefully will fix these issues after @merlinpimpim report. You will need to update the manifest.json fill by setting "requirements": ["gps-tracker==0.9.0"] and by incrementing the line "version": "1.0.0" to a any value (e.g. 2.0.0).

Super, it works! (Note: you need to restart HA after making these changes).

Supplementary question: I have 2 trackers in my Invoxia account but only 1 is shown in the integration. How can I get both? If this isn't possible, is it possible to choose which of the 2 I'd prefer to retrieve in HA? image

Thank you

@ezlo-picori An idea ?

ezlo-picori commented 8 months ago

Not really no, both devices are supposed to show up...

I have updated the integration on the initial pull request, maybe some of those changes could have an impact on the issue you are facing?... You can try by using the updated integration to see if that fixes it. Otherwise I don't really know.

If you are confortable with python, you could also try using directly the gps-tracker package to see what devices are detected for your account. If one of your devices fails to load because it is not supported, you may open a dedicated issue (once again...).

merlinpimpim commented 8 months ago

It's ok now, my 2 devices are visible in the integration 😀 Thx