Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to initialize #134

Open
tbgoose opened this issue Sep 16, 2024 · 18 comments
Open

Failing to initialize #134

tbgoose opened this issue Sep 16, 2024 · 18 comments

Comments

@tbgoose
Copy link

tbgoose commented Sep 16, 2024

Hi all

I was having similar issues to others but thought I would create a new issue as I have already undertaken debug steps and have some info to include to help others. The integration stopped functioning about 3-4 days ago. Tried reloading etc but it is stuck on initializing. I have enabled debug logging but not seeing much honestly in the logs. Only one error RE connectivity at midnight.

Screenshot 2024-09-16 121355Screenshot 2024-09-16 121330

My machine can curl openapi url

➜  ~ curl https://openapi.alphaess.com/
{"code":6012,"msg":"AppId is empty"}#     

However using postman I receive the following result on all get calls. Google tells me this is likely an authentication issue, but possible could relate to the timestamp format once everything is encrypted together in the api calls? Link . Anyhow, I have reset the developer secret to try get around that, but still receive the same results in postman.
image

I have now also uninstalled the integration completely, restarted HA, reinstalled 0.5.5, restarted HA and tried to re-add integration using the new appsecret and it is finally back up and working. Not sure why Postman isn't working, perhaps I am doing something incorrectly.

image

Hopefully this helps someone else.

@ceeessbee
Copy link

Hi all, also having problems when reloading HA, I was looking to move to new version but have now reverted back as no entities available. Not as technically literate as @tbgoose but have followed his approach to delete AlphaESS, restart, re-login. However I now can't find AlphaESS through HACS (all kinds of searching) so have created manually. I've reset my AlphaESS 'secret' and setup using original ID and new 'secret'. However I get a screen response of "Unknown error occurred". I'm lost on where to go with this now. As @tbgoose implies maybe an AlphaESS authintication issue at the server end which may clear (wishful thinking).

@Poshy163
Copy link
Contributor

Yeah, their server seems to be down. its going to be a issue for everyone unfortunately.

Even through using postman to make the API calls, you get an error 😢

image

@ceeessbee
Copy link

Thank you for confirming @Poshy163

@beastien
Copy link

I'm having the same problem.

This error originated from a custom integration.

Logger: alphaess.alphaess
Source: custom_components/alphaess/init.py:48
integration: Alpha ESS (documentation, issues)
First occurred: September 18, 2024 at 10:51:21 PM (4 occurrences)
Last logged: 5:31:02 AM

502, message='Bad Gateway', url='https://openapi.alphaess.com/api/getEssList'
Error: 502, message='Bad Gateway', url='https://openapi.alphaess.com/api/getEssList' when calling https://openapi.alphaess.com/api/getEssList

@jetscrubber
Copy link

Same issue here. ESS cloud is not down, my phone app work properly.

@Freddo333
Copy link

Same issue here. ESS cloud is not down, my phone app work properly.

It seems that its just the open api thats down. The phone app has been using an internal api for a while now, which annoyingly alpha ess has increased the security on and has a habit of changing, so it hasn't been as practical to use for a while.

@Meigl89
Copy link

Meigl89 commented Sep 19, 2024

Working again on my end. API is back.

image

@itsgumbys
Copy link

hi,
i have reinstalled 0.5.5 version using HACS. integration is added, however no entities are being shown.
what could be the reason ?

Regards,

@Poshy163
Copy link
Contributor

What error are you getting via the logs? have you tried reloading the integration?

@itsgumbys
Copy link

What error are you getting via the logs? have you tried reloading the integration?

TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'model_id'
2024-09-19 10:57:31.028 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity None for domain sensor with platform alphaess
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 600, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 772, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(

tried reloading no luck !

@Poshy163
Copy link
Contributor

Huh weird, does this error still occur if you remove the integration and delete it from HACS, restart. then install it again, restart and then try to add the OpenAPI information again?

@itsgumbys
Copy link

yes but still no luck.
is API from backend is working now ?

what else could be wrong.

Untitled

@pjhum
Copy link

pjhum commented Sep 19, 2024

Now the API is back up, a restart of HA had everything running again for me- I had held off doing anything In the meantime, hoping that would be the case.

@Poshy163
Copy link
Contributor

Poshy163 commented Sep 19, 2024

@itsgumbys working for me, just re-added my 2 inverters. how many inverters do you have in your openAPI account? and do they show there?

image

@itsgumbys
Copy link

@itsgumbys working for me, just re-added my 2 inverters. how many inverters do you have in your openAPI account? and do they show there?

image

only 1 inverter and its being shown on openAPI.
all i remember is that i reset the key before adding.

which version of alphaess integration you are using ? may be updating to latest version can caused some issue.

@Poshy163
Copy link
Contributor

do you have IP whitelist turned on? where you cannot get any data fropm the API on ur IP address?
and are you using the most current developer id and Developer key? it might take a bit to update with the new key if you have just reset it

im also on 0.5.5.

@itsgumbys
Copy link

do you have IP whitelist turned on? where you cannot get any data fropm the API on ur IP address? and are you using the most current developer id and Developer key? it might take a bit to update with the new key if you have just reset it

im also on 0.5.5.

Well... i have restored HA to last backup and re-entered the key as i have reset it and its back to life now !!. Thanks for the help :) but i dont know why it was behaving.

@tbgoose
Copy link
Author

tbgoose commented Sep 23, 2024

Mine is now back up. I had done a few integration reloads and some ha restarts for other updates over last few days. Not sure what finally brang it back but restart this morning fixed it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants