Lektrico / ha_lektrico

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

Just upgraded to the latest version today and the integration stopped working. Please look into it. #1

Closed masoudemad closed 2 years ago

masoudemad commented 2 years ago

This error originated from a custom integration.

Logger: homeassistant.config_entries Source: custom_components/lektrico_custom/init.py:44 Integration: Lektrico Charging Station (documentation, issues) First occurred: 9:33:14 PM (2 occurrences) Last logged: 9:39:02 PM

Error setting up entry Wallbox Charger for lektrico_custom Error setting up entry Wallbox Lektrico for lektrico_custom Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, 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.9/site-packages/lektricowifi/lektricowifi.py", line 103, in charger_info return Info.from_dict(data) File "/usr/local/lib/python3.9/site-packages/lektricowifi/models.py", line 62, in from_dict user_current = data["user_current"] KeyError: 'user_current'

mtarjoianu commented 2 years ago

Hello masoudemad,

Thank you very much for reporting this issue.

I talked with our development team and the error is because 'user_current' exists in the charger's firmware 1.41 which has no official release yet. The official release will appear soon and only then the chargers will auto update to this firmware.

Can you please confirm that your charger has a lower version than 1.41 ?

If you tell us the serial number of your charger, we can update it now (the serial number is that 5XXXXX number). Or you can contact the support and ask for 1.41 firmware.

Thank you for your patience and understanding, Mihaela G.P.

masoudemad commented 2 years ago

Thank you Mihaela for getting back to me so quickly. Just looked and "Automatic updates" option is enabled in the app.I confirm that the charger has 1.40 firmware. S/N: 500262 Regards,Emad On Friday, May 13, 2022, 10:06:41 AM GMT+3, mtarjoianu @.***> wrote:

Hello masoudemad,

Thank you very much for reporting this issue.

I talked with our development team and the error is because 'user_current' exists in the firmware 1.41 which has no official release yet. The official release will appear soon and only then the chargers will auto update to this firmware.

Can you please confirm that your charger has a lower version than 1.41 ?

If you tell us the serial number of your charger, we can update it now (the serial number is that 5XXXXX number). Or you can contact the support and ask for 1.41 firmware.

Thank you for your patience and understanding, Mihaela G.P.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

mtarjoianu commented 2 years ago

Hello Emad,

Your charger was updated to version 1.41. The above error with "user current" should no longer appear.

Best Regards, Mihaela

masoudemad commented 2 years ago

Hi Mihaela,I confirm the firmware was updated and I can see the additional configuration options in HA.

Thank you very much for your help,Emad

On Friday, May 13, 2022, 02:27:41 PM GMT+3, mtarjoianu ***@***.***> wrote:  

Hello Emad,

Your charger was updated to version 1.41. The above error with "user current" should no longer appear.

Best Regards, Mihaela

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>