Lektrico / ha_lektrico

Manage your Lektrico EV Charger
MIT License
14 stars 4 forks source link

Setup failed #9

Closed abedouet closed 1 year ago

abedouet commented 1 year ago

Logger: homeassistant.config_entries Source: custom_components/lektrico_custom/init.py:44 Integration: Lektrico Charging Station (documentation, issues) First occurred: 09:11:38 (5 occurrences) Last logged: 09:41:21

Error setting up entry Home charger for lektrico_custom Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/lektrico_custom/init.py", line 44, in async_setup_entry await charger.charger_info() File "/usr/local/lib/python3.10/site-packages/lektricowifi/lektricowifi.py", line 103, in charger_info return Info.from_dict(data) File "/usr/local/lib/python3.10/site-packages/lektricowifi/models.py", line 55, in from_dict state_machine_e_activated = data["state_machine_e_activated"], KeyError: 'state_machine_e_activated'

Firmware 1.45

masoudemad commented 1 year ago

Similar issue here. Could be triggered by the firmware version 1.45? Rebooted HA and Charger but the issue is persistent:

2023-04-05 10:35:38.022 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Wallbox Charger for lektrico_custom Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/lektrico_custom/init.py", line 44, in async_setup_entry await charger.charger_info() File "/usr/local/lib/python3.10/site-packages/lektricowifi/lektricowifi.py", line 103, in charger_info return Info.from_dict(data) File "/usr/local/lib/python3.10/site-packages/lektricowifi/models.py", line 55, in from_dict state_machine_e_activated = data["state_machine_e_activated"], KeyError: 'state_machine_e_activated'

mtarjoianu commented 1 year ago

Hello, Last evening/night, v.1.45 was released for 1p7k chargers. There is available a new version (v.1.1.11-beta) for Lektrico integration in HACS. It should solve the encountered problem.

masoudemad commented 1 year ago

Hi @mtarjoianu. I've tested the Beta and it works. I will need to change the automations and test again. Thank you