AdyRock / ady.solarman

GNU General Public License v3.0
0 stars 1 forks source link

Multiple values not fetched? #13

Open FrankyBoy opened 10 months ago

FrankyBoy commented 10 months ago

Hi,

Sofar/Solarman version: 1.1.9

I have a Deye Sun800G3-EU-230, and, while I get the most important values on the UI, I also see some values that are present in the Solarman web ui but not propagated to homey. Specifically:

Please let me know what data you need to look into this / if there are some checks I should perform first (maybe something is just set up incorrectly with my solarman account, who knows)

Cheers :)

AdyRock commented 10 months ago

Could you open the app settings page, turn on the LOG INTERNET DATA option and the wait for the list to fill up with some data. Once you see data, click on the Send Log button. If I can find the data in the log I can add it to the app.

FrankyBoy commented 10 months ago

Hi, sorry the only option I can find is the "Send Diagnostics Report" one. I'll try that one as a start. E: report-id is bf74b515-c42b-4c7a-8f6f-ac67ae54c463

AdyRock commented 10 months ago

Ah, OK I see you have Homey (cloud) and that doesn't have the app settings. Unfortunately, to make matters worse, the Diagnostics log doesn't have any information in it.

FrankyBoy commented 10 months ago

Hm ok any idea what requests I have to send? Because I can just replay the scenario in postman or similar.

AdyRock commented 10 months ago

Unfortunately it's not that simple. First you would have to create a developer account to get a clientIDand secret, then you would need to use those to login to your account using OAUTH2 to get an access and refresh token that can be used in the API calls. Let me have a think about this to see if I can get the information some other way

AdyRock commented 10 months ago

Hmm, I have just looked in the app code and the PV1 and PV2 values for V, A and W are in there already. The app also shows the temperatures of the Invert, Battery and Radiator.

FrankyBoy commented 10 months ago

Hi, yes that's the point... The fields are there on both sides, but the values are not passed along. So my guess is something weird is going on in the mapping / API response.

Adrian Rockall @.***> schrieb am Di., 22. Aug. 2023, 22:19:

Hmm, I have just looked in the app code and the PV1 and PV2 values for V, A and W are in there already. The app also shows the temperatures of the Invert, Battery and Radiator. [image: 2023-08-22 21 15 31] https://user-images.githubusercontent.com/38184396/262473165-9824481c-98fb-442a-9b8c-d3b4fc358b05.jpg

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/ady.solarman/issues/13#issuecomment-1688866435, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACA4QBB45G5SZW3KJSGAY3XWUH3TANCNFSM6AAAAAA3Z5HH54 . You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 10 months ago

Hmm, they are working for me, so not sure why you aren't see them. 2023-08-22 21 24 44

AdyRock commented 10 months ago

Obviously nothing much to report as it's dark.

FrankyBoy commented 10 months ago

Hi, yes that's basically what I want to figure out... I.e. on the solarman site I get this info for my inverter... image and in Homey I get this view: image image

Based on your screenshot I get completely different fields shown, for example mine has a lot of battery values which this device does not even support, and at the same time there is only "PV1 voltage" (the one in the 2nd screenshot saying "- Last value unknown"), no PV2. Interesting enough the rest of the fields are available in the insights.

Anyway I'll see if I can maybe hijack someone's pro for a little bit and try to reproduce things there ;)

AdyRock commented 10 months ago

Could you remove the device and add it in again as I'm wondering if something has got messed up with it.

FrankyBoy commented 10 months ago

Hi, I got access to a friends Pro, and sent a log now. To me it looks like this if https://github.com/AdyRock/ady.solarman/blob/1981c6fafd11d23aec6404857295ccfd960643c1/drivers/hub_device.js#L58C20-L58C20 is never entered so all the data is lacking. Also tried adding and removing the device while the logs were enabled, but could not see any logs to view the values we get from getData.

E: sorry for double post, wrong account -.-