Rain1971/V2C_trydant

Error adopting V2C Trydan Firmware 2.1.17

KLMRCLL opened this issue · 0 comments

The charger is connected via WiFi and reachable via APP and Bluetooth.
When adopting on HA (2024.1.5 CORE 11.4 OS) I get "Unexpected Error" and asks for the Charger IP again.

Logger: homeassistant.components.v2c.config_flow
Source: components/v2c/config_flow.py:44
Integration: v2c (documentation, issues)
First occurred: 22:00:28 (4 occurrences)
Last logged: 22:11:58
Unexpected exception

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/v2c/config_flow.py", line 44, in async_step_user
await evse.get_data()
File "/usr/local/lib/python3.11/site-packages/pytrydan/trydan.py", line 111, in get_data
self._data = TrydanData.from_api(data)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytrydan/models/trydan.py", line 109, in from_api
slave_error=SlaveCommunicationState(data["SlaveError"]),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/enum.py", line 712, in call
return cls.new(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/enum.py", line 1135, in new
raise ve_exc
ValueError: 5 is not a valid SlaveCommunicationState