tijsverkoyen / HomeAssistant-FusionSolar

Integrate FusionSolar into your Home Assistant.
MIT License
133 stars 25 forks source link

All Inverter and Meter entities return "Unknown" #73

Closed ssorgatem closed 1 year ago

ssorgatem commented 1 year ago

Basically I cna only get the daily, monthly and yearly yields and little else. The rest of entities return "unknown" values.

image

I'm on the https://region01eu5.fusionsolar.huawei.com/ region and m,y account is from a couple months ago. Maybe this is related to https://github.com/tijsverkoyen/HomeAssistant-FusionSolar/issues/68 ?

I don't know where to look for logs for this, I'm new to HA...

tijsverkoyen commented 1 year ago

My first guess is that your installed did not give you enough permissions. You can enable logging by going to Settings → Devices & Services. There you should see the "Fusion Solar" integration. If you click on the 3 dots there is a button "Enable debug logging". The logs can be found under Settings → System → Logs

ssorgatem commented 1 year ago

That cannot be because I can get much more than that using this python module in my own scripts: https://github.com/EnergieID/FusionSolar

Now I have logs but they are both massive and contain sensitive data. What should I be looking for in there?

ssorgatem commented 1 year ago

After playing around removing and re-adding the integration, now it reads some values it didn't before from the inverter: model ,location, device ID, etc. in general all static values, but no data of power or anything.

But I can get it through the API and through the app.

EDIT: now they are gone like everything else and show as "unknown"

tijsverkoyen commented 1 year ago

From what you are describing I think you are hitting the rate limiting. In the logs there should be something like Access frequency too high. There is nothing much I can do about that. You can try to disable devices: https://github.com/tijsverkoyen/HomeAssistant-FusionSolar#disabling-devices

If there is nothing about the access frequency too high in the log. You can mail (fusionsolar [at] Verkoyen.eu) your OpenAPI credentials to me and I will try to debug.

aretokas commented 1 year ago

The rate limiting thing would be my guess as well. I have the luxury of having an installer account so I can make as many API credentials as I need to test/develop. But up until I figured out what was going on I encountered very similar issues to what is described here.

@ssorgatem - Are you using the same credentials in multiple places? You mentioned other scripts, and you've potentially used Postman as well if you're accessing the API directly. If you're using the same API credentials across all of them you're 100% going to be hitting the rate limiting, especially on the real time, daily, monthly, yearly KPI endpoints.

tijsverkoyen commented 1 year ago

@aretokas offtopic: but if you have an installer account: feel free to clarify the README with the steps that are needed to create an OPEN API account, and which settings should be activated.

tijsverkoyen commented 1 year ago

@ssorgatem any update? Are you seeing the Access frequency too high error?

tijsverkoyen commented 1 year ago

I will close this issue as there is no update. Feel free to reopen the issue.

perezga commented 1 year ago

Im having same problem so I tested myself with postman and the problem is the data map in the response from API is just empty...it must be a bug in their side as the endpoints return success with some data but the important stuff is just missing.

Argosy87 commented 1 year ago

Im having same problem so I tested myself with postman and the problem is the data map in the response from API is just empty...it must be a bug in their side as the endpoints return success with some data but the important stuff is just missing.

Just ask your installer to set the correct permissions to get the data. If its empty and querry is succes you do not have the correct permissions on your account.

perezga commented 1 year ago

As you can see, all permissions are enabled for the account. It is in spanish, but second line from the top reads 'plant data for realtime'. The account should have permission unless expandind those permissions there is some disabled which I hvae no visibility

Enviado desde Outlook para Androidhttps://aka.ms/AAb9ysg


From: Argosy87 @.> Sent: Saturday, March 18, 2023 8:45:43 AM To: tijsverkoyen/HomeAssistant-FusionSolar @.> Cc: perezga @.>; Comment @.> Subject: Re: [tijsverkoyen/HomeAssistant-FusionSolar] All Inverter and Meter entities return "Unknown" (Issue #73)

Im having same problem so I tested myself with postman and the problem is the data map in the response from API is just empty...it must be a bug in their side as the endpoints return success with some data but the important stuff is just missing.

Just ask your installer to set the correct permissions to get the data. If its empty and querry is succes you do not have the correct permissions on your account.

— Reply to this email directly, view it on GitHubhttps://github.com/tijsverkoyen/HomeAssistant-FusionSolar/issues/73#issuecomment-1474763317, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDB6N64HSM75SUARGYJUXDW4VR2PANCNFSM6AAAAAAVNPTGBE. You are receiving this because you commented.Message ID: @.***>

aretokas commented 1 year ago

image

@perezga There definitely is the possibility that "All" has not been selected as per this screenshot. I cannot see your screenshot (I'm assuming it was an attachment to your email reply)

Here's a link to the part in the readme on what permissions should be required. Notice I've made a particular note of selecting "All" under each heading. Unfortunately the default view is collapsed and the default even after turning on a section is to not select anything underneath it - so if your installer has just hit the slider to turn a section on, but not expanded and selected "All" - That will be your issue.

https://github.com/tijsverkoyen/HomeAssistant-FusionSolar#if-you-know-your-installer

aretokas commented 1 year ago

image

This is what it SHOULD look like.

perezga commented 1 year ago

Thanks for the info. I will contact my installer to check it.

Enviado desde Outlook para Androidhttps://aka.ms/AAb9ysg


From: Deon Marshall @.> Sent: Saturday, March 18, 2023 9:31:50 AM To: tijsverkoyen/HomeAssistant-FusionSolar @.> Cc: perezga @.>; Mention @.> Subject: Re: [tijsverkoyen/HomeAssistant-FusionSolar] All Inverter and Meter entities return "Unknown" (Issue #73)

[image]https://user-images.githubusercontent.com/6782246/226094691-69843dcd-4695-4e95-9231-91ff9993a06b.png

This is what it SHOULD look like.

— Reply to this email directly, view it on GitHubhttps://github.com/tijsverkoyen/HomeAssistant-FusionSolar/issues/73#issuecomment-1474772134, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDB6N3K55TSQK733MGDLPTW4VXHNANCNFSM6AAAAAAVNPTGBE. You are receiving this because you were mentioned.Message ID: @.***>