dan-r/HomeAssistant-Ohme

Added the intergration and OHME log in details which succeeded but no device found

Leecavturbo opened this issue ยท 13 comments

Describe the bug
As title

To Reproduce
Added via hacs

Expected behavior
A clear and concise description of what you expected to happen.
To see a state, charging or kw etc

Screenshots
If applicable, add screenshots to help explain your problem.

Home Assistant Version
Find this in Settings > About.

Home Assistant Core 2024.1.2

Integration Version
Find this from HACS.
No info given by the intergration

Additional context
Install via custom repository went as expected without error. Restarted HA and OHME now showing . Opened to be asked for OHME email and password which entered and succeeded message. No device or entity listed

Could you please fill in every field in the issue and include debug logs and some additional context.

Any errors in the Home Assistant log?

May be worth enabling debug logs for the integration - click on it from the screenshot you showed and there should be an option to enable debug logs. After enabling, restart home assistant then disable debug logs from the same place and it should give you a log file. Could you please provide this - redacting any personal information if necessary.

That should give me more of an idea as to why it isn't working.

Could you also please share what charger you have and verify that the login details are for the same account by logging out of the Ohme app and using the same credentials to log in. It is possible if you initially created your account using a social account that you could have duplicate accounts.

Any errors in the Home Assistant log?

May be worth enabling debug logs for the integration - click on it from the screenshot you showed and there should be an option to enable debug logs. After enabling, restart home assistant then disable debug logs from the same place and it should give you a log file. Could you please provide this - redacting any personal information if necessary.

That should give me more of an idea as to why it isn't working.

Could you also please share what charger you have and verify that the login details are for the same account by logging out of the Ohme app and using the same credentials to log in. It is possible if you initially created your account using a social account that you could have duplicate accounts.

No errors pre or post debug in system log . You need log from supervisor?
image

I deleted the charger in OHME intergration first. Reset password even though it was never a social password. Logged out and back in on OHME app with new password.
Add entry to which success /configuration created message.
Still no charger
Oh it is an OHME pro.
image

With debug logging turned on you should see a lot of messages in the log, as it puts one out with every request it makes. I haven't any experience with the supervisor setup but you may need to take a look in there to see the debug messages.

It's also possible that there's a compatibility issue with the version of home assistant you're running, I'll give it a test over the weekend.

@Leecavturbo have you had any luck finding the debug logs/narrowed down the issue at all?

@dan-r I'm having the same issue.
Debug logging, repeated error is:
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'serial_number'

Debug log attached. I've removed what looks like my user id and device ID, can send you the log directly if you needed those.
I enabled debug logging, deleted the "Ohme Charger" entry in the integration, then re-added it with my account details, gave it a moment and reloaded the page, turned off debug logging.
home-assistant_ohme_2024-01-18T13-32-48.816Z.log

@ryamoo which version of home assistant are you using?

@ryamoo which version of home assistant are you using?

2023.9.1 - didn't realise I was so far behind! I'll update and try again, unless you want me to try something on this version?

I haven't tested that far back but looks like that error could be fixed by updating. I'd say try updating and try again

@dan-r yep that did it, now on 2024.1.3, re-added your integration, and I now have 1 device and 20 entities.
Thanks!