sockless-coding / garo_wallbox

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

All entities Unavailable #9

Closed ballez closed 3 years ago

ballez commented 3 years ago

Hi!

I got it all to work beautifully but then I had to restart the Wallbox and now it says Unavailable for all entities.

Log readout: 2021-02-16 21:53:56 WARNING (MainThread) [homeassistant.config_entries] Config entry '[Correct Wallbox IP]' for garo_wallbox integration not ready yet.

I tried reinstalling the Integration but still the same.

sockless-coding commented 3 years ago

@ballez Hi, sounds like HA is having issues connecting to your wallbox. Can you verify that the wallbox is responding on that IP by going to http://[Correct Wallbox IP]:2222/rest/chargebox/status

ballez commented 3 years ago

So it seems: {"ocppState":null,"connectedToInternet":true,"freeCharging":false,"ocppConnectionState":null,"connector":"CONNECTED","mode":"SCHEMA","currentLimit":13,"factoryCurrentLimit":32,"switchCurrentLimit":13,"powerMode":"OFF","currentChargingCurrent":0,"currentChargingPower":0,"accSessionEnergy":0,"latestReading":505100,"chargeStatus":48,"updateStatus":{"serialsToUpdate":[],"serialsUpdated":[],"currentlyUpdating":-1,"currentProgress":-1,"failedUpdate":0},"currentTemperature":9,"slaveControlWarning":false,"pilotLevel":13,"sessionStartValue":505100,"nrOfPhases":1}

Wallbox information is displayed in HA as well. image

sockless-coding commented 3 years ago

Very strange, the only way I can recreate the issue is when there are connection issues to the wallbox. Do the entities show up under the device info?

ballez commented 3 years ago

Yes, but grayed out. image

ballez commented 3 years ago

The same under Entities, where they're marked "Restored" image

Opening one of them and clicking the settings-icon in the top-right corner shows this message: image

I'm quite new to HA so the problem can definitely be user-related :)

sockless-coding commented 3 years ago

Hmm, you could try the following Remove the integration Re-add it and give it a different friendly name, that will force the entities to be recreated

ballez commented 3 years ago

Where do I change that name?... Can I change the Wallbox IP address somewhere?

sockless-coding commented 3 years ago

@ballez on the HA integration page, when you configure the integration you have the option to set a friendly name. image

ballez commented 3 years ago

Managed to remove it completely and install it again, now it works! During my previous attempts I must have missed to remove the integration in HA or something because I never got the opportunity to enter the IP address.

sockless-coding commented 3 years ago

Glad to hear its working :)