Using config flow and entered my V2H smart portal log in.
I get the following errors when setting up the integration whilst the vehicle isn't connected. Probably need some sort of error handling when vehicle isn't connected.
2024-04-08 15:18:32.111 CRITICAL (MainThread) [custom_components.indrav2h] Test Indra credentials
2024-04-08 15:18:32.361 INFO (MainThread) [homeassistant.setup] Setting up indrav2h
2024-04-08 15:18:32.361 INFO (MainThread) [homeassistant.setup] Setup of domain indrav2h took 0.0 seconds
2024-04-08 15:18:32.362 INFO (MainThread) [custom_components.indrav2h]
-------------------------------------------------------------------
Indra V2H
Version: 0.0.2
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/creatingwake/ha-indrav2h/issues
-------------------------------------------------------------------
2024-04-08 15:18:32.889 ERROR (MainThread) [custom_components.indrav2h] Traceback (most recent call last):
File "/config/custom_components/indrav2h/__init__.py", line 91, in _async_update_data
return await self.api.refresh()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hclient.py", line 19, in refresh
await self._device.refresh_stats()
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hdevice.py", line 44, in refresh_stats
a = await self.connection.get("/transactions/" + self.serial +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 72, in get
return await self.send("GET", url, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 68, in send
raise V2HException(response.status_code)
pyindrav2h.exceptions.V2HException
2024-04-08 15:18:32.889 ERROR (MainThread) [custom_components.indrav2h] Error fetching indrav2h data:
File "/config/custom_components/indrav2h/__init__.py", line 91, in _async_update_data
return await self.api.refresh()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hclient.py", line 19, in refresh
await self._device.refresh_stats()
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hdevice.py", line 44, in refresh_stats
a = await self.connection.get("/transactions/" + self.serial +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 72, in get
return await self.send("GET", url, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 68, in send
raise V2HException(response.status_code)
pyindrav2h.exceptions.V2HException
2024-04-08 15:18:38.826 ERROR (MainThread) [custom_components.indrav2h] Error fetching indrav2h data:
2024-04-08 15:18:49.627 ERROR (MainThread) [custom_components.indrav2h] Traceback (most recent call last):
File "/config/custom_components/indrav2h/__init__.py", line 91, in _async_update_data
return await self.api.refresh()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hclient.py", line 19, in refresh
await self._device.refresh_stats()
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hdevice.py", line 44, in refresh_stats
a = await self.connection.get("/transactions/" + self.serial +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 72, in get
return await self.send("GET", url, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 68, in send
raise V2HException(response.status_code)
pyindrav2h.exceptions.V2HException
2024-04-08 15:18:49.627 ERROR (MainThread) [custom_components.indrav2h] Error fetching indrav2h data:
2024-04-08 15:19:10.552 ERROR (MainThread) [custom_components.indrav2h] Traceback (most recent call last):
File "/config/custom_components/indrav2h/__init__.py", line 91, in _async_update_data
return await self.api.refresh()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hclient.py", line 19, in refresh
await self._device.refresh_stats()
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hdevice.py", line 44, in refresh_stats
a = await self.connection.get("/transactions/" + self.serial +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 72, in get
return await self.send("GET", url, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 68, in send
raise V2HException(response.status_code)
pyindrav2h.exceptions.V2HException
2024-04-08 15:19:10.553 ERROR (MainThread) [custom_components.indrav2h] Error fetching indrav2h data:
2024-04-08 15:19:51.589 ERROR (MainThread) [custom_components.indrav2h] Traceback (most recent call last):
File "/config/custom_components/indrav2h/__init__.py", line 91, in _async_update_data
return await self.api.refresh()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hclient.py", line 19, in refresh
await self._device.refresh_stats()
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/v2hdevice.py", line 44, in refresh_stats
a = await self.connection.get("/transactions/" + self.serial +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 72, in get
return await self.send("GET", url, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyindrav2h/connection.py", line 68, in send
raise V2HException(response.status_code)
pyindrav2h.exceptions.V2HException
2024-04-08 15:19:51.589 ERROR (MainThread) [custom_components.indrav2h] Error fetching indrav2h data: