sockless-coding / garo_wallbox

Garo wallbox - Home Assistant Component
MIT License
20 stars 35 forks source link

Unexpected error creating device #11

Open albatorsk opened 3 years ago

albatorsk commented 3 years ago

I have been using this integration successfully for several months, but today I made the fatal mistake of upgrading my GLBDC-T222WO-A to the latest firmware (from 6.9 I believe, to 1.2.2 (must be a new version numbering scheme)). After doing so, I could still control my wallbox from Home Assistant, up until that I rebooted Home Assistant. Then it would no longer communicate with my wallbox. I decided to remove the integration and set it up again, but now it will not accept the wallbox when trying to add it. A popup is shown with the text: "Aborted. Unexpected error creating device."

The URLs http://xxx.xxx.xxx.xxx:2222/rest/chargebox/status and http://xxx.xxx.xxx.xxx:2222/rest/chargebox/config are accessible and gives me JSON output that can be easily parsed with jq without any errors.

I'm using the Garo integration version 1.0.6 with Home Assistant 2021.3.1.

albatorsk commented 3 years ago

The error seems to be related to the connector state. When I tried to add the wallbox to the integration in HASS, it was disabled. The state was DISABLED. So I enabled the charger, and it's now set to CHARGING (as my car is connected and charging), and I could now once again add the wallbox to the HASS integration.

maccan-tech commented 3 years ago

This should be solved by #13 Testing this weekend. Got a garo wallbox Modell: GLBDCWM-T222FC Mjukvaruversion: 1.2.2

daunjo commented 3 years ago

Can we expect a release soon with the fix? As soon as I disable the charger throug web GUI it kills the integration.

best regards!

sockless-coding commented 3 years ago

I haven't had the time to verify the merge changes more than that they didn't break anything. But they are included in the v1.0.7

daunjo commented 3 years ago

Seems to work, I could add the integration with the charger disabled, and the sensor keeps reacting when changing modes. Fingers crossed, good work!