dan-r/HomeAssistant-Ohme

Failed setup in Home Assistant with original Ohme charger

dan-r opened this issue · 6 comments

          Hello - I'm getting a failed setup in Home Assistant with a (quite old) Ohme original charger identifying in the Ohme app as a an Ohme Home/Go. Firmware version v.1.32_202307131.

Debug log below:

2024-01-01 13:42:06.641 DEBUG (MainThread) [custom_components.ohme.coordinator] Finished fetching Ohme Charge Sessions data in 0.039 seconds (success: True)
2024-01-01 13:42:06.672 DEBUG (MainThread) [custom_components.ohme.coordinator] Finished fetching Ohme Account Info data in 0.031 seconds (success: True)
2024-01-01 13:42:06.937 DEBUG (MainThread) [custom_components.ohme.coordinator] Finished fetching Ohme Charger Statistics data in 0.265 seconds (success: True)
2024-01-01 13:42:07.313 DEBUG (MainThread) [custom_components.ohme.coordinator] Finished fetching Ohme Advanced Settings data in 0.376 seconds (success: False)

Originally posted by @jon798 in #16 (comment)

@jon798 would you mind replacing api_client.py in your custom_components/ohme folder with this and trying again? The only change is line 147 - next time you try to set it up you should get the API response in the debug log.

It'd be useful to see the one starting with:
DEBUG (MainThread) [custom_components.ohme.api_client] API request to /v1/chargeDevices/ohmexxxxxxxx/advancedSettings

Make sure to redact anything confidential or user identifiable if it comes out in there.

Dan

Here you go...

2024-01-01 14:44:08.437 DEBUG (MainThread) [custom_components.ohme.api_client] API request to /v1/chargeDevices/ohmeapghffar/advancedSettings status code 200, text: {"model":"Home Go V1.0","firmwareVersion":"V1.32_202307131","online":true,"lastConnectDisconnect":1704068744116,"pluggedIn":false,"currentLimitAmps":null,"linkedToUser":true,"linkedEmail":"aaaaaa@bbbbbb.ccc","clampReadingAt":1704120248431,"clampAmps":null,"clampConnected":null,"mainMaxAmps":32,"loadBalancingEnabled":false,"loadBalancingMaxAmps":0,"permissionExpiresAt":null,"permissionRequestPending":false,"allowConfiguration":false,"clampInstallationSkipped":false,"loadBalancingTested":false}
2024-01-01 14:44:08.438 DEBUG (MainThread) [custom_components.ohme.coordinator] Finished fetching Ohme Advanced Settings data in 0.189 seconds (success: False)

Cheers,

Jon.

@jon798 looks like I just wasn't accounting for the clampAmps value being non-numeric (On yours its null/None). I'm assuming you don't have a CT clamp installed?

I've just released v0.2.4 which should now work for you. Could you please test it and report back?

TIA
Dan

No, I don't have a CT clamp - the original "commando" cables didn't come with them. Will test now.
Cheers,
Jon.

It's all sprung into life. Thanks for the speedy response! Changing car from an API-supported Mini to a non-API Smart #1 and there's no HA integration for the new Smart API so this will be great to get some status from the charger.
Cheers,
Jon.

Good to hear, glad it's working for you now.

I'll close this issue but let me know if you spot anything else.

Happy new year,
Dan