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

OpenDTU v24.2.12 breaking API changes #139

Closed
mapietru opened this issue Feb 13, 2024 · 14 comments · Fixed by #145
Closed

OpenDTU v24.2.12 breaking API changes #139

mapietru opened this issue Feb 13, 2024 · 14 comments · Fixed by #145
Assignees

Comments

@mapietru
Copy link

Just tried the latest version of OpenDTU, but as expected dbus-opdendtu stops working. I had to go back to v24.1.26...

"REAKING CHANGE: Web API Endpoint /api/livedata/status
To reduce the heap usage it is necessary to send the inverters one by one instead of a huge response. A simple call to /api/livedata/status returns just some very general information. If detailed inverter information are required the inverter serial number has to appended ?inv=<serial number>.
The websocket also returns only one inverter at a time. It as to be assembled at client side."

@0x7878
Copy link
Collaborator

0x7878 commented Feb 13, 2024

Thank you for sharing. We will have to implement the newer firmware by time. You don't have the output of the JSON, don't you?

@tehre85
Copy link

tehre85 commented Feb 13, 2024

just tested with openDTU [v24.2.12]and run in the same.
json of api/livedata/status
{"inverters":[{"serial":"xxxxxxxxx","name":"xxxxxxx","order":0,"data_age":0,"poll_enabled":true,"reachable":true,"producing":true,"limit_relative":100,"limit_absolute":xxxxxx}],"total":{"Power":{"v":382.6000061,"u":"W","d":1},"YieldDay":{"v":378,"u":"Wh","d":0},"YieldTotal":{"v":1578.530029,"u":"kWh","d":3}},"hints":{"time_sync":false,"radio_problem":false,"default_password":false}}

The new version provides much less compared to the v24.1.18.

Just swapped to 24.1.18 as this was my last stable version.

@henne49
Copy link
Owner

henne49 commented Feb 13, 2024

First get inverster and serial numbers:
/api/livedata/status
https://www.opendtu.solar/firmware/web_api/#get-common-live-data
second:
/api/livedata/status?inv=inverter-serialnumber

We have to query every SN now separately:
https://www.opendtu.solar/firmware/web_api/

@tehre85
Copy link

tehre85 commented Feb 15, 2024

@henne49 i just anonymised the serial number and name, as well as the limit_absolute.

@Ayo91
Copy link

Ayo91 commented Feb 15, 2024

same issue here... with the last version we have to request the data by inverter :O

@henne49
Copy link
Owner

henne49 commented Feb 16, 2024

@2bbionic
Copy link

2bbionic commented Feb 17, 2024

ran into the samme gap :D
anyway, I collected and anoned the JSON files for you - just in case you should need them.
I use three H350; tied together in OpenDTU
status.json
inv-status.json

@henne49 henne49 self-assigned this Feb 19, 2024
@henne49 henne49 linked a pull request Feb 19, 2024 that will close this issue
@henne49
Copy link
Owner

henne49 commented Feb 19, 2024

I have created a PR which should fix the API change and work with old and new API, please test the PR, if you can.

@2bbionic
Copy link

2bbionic commented Feb 19, 2024

It seems that at least the power of my individual panels is shown now - but not the summary yet:
grafik
The wattage itself fits and the log ("current.log") remains empty
There's a strange behaviour though - in my remote console the wattage is shown:
grafik

@henne49
Copy link
Owner

henne49 commented Feb 19, 2024

VRM has a delay sometimes. The remote console should show the correct data.
grafik

@tehre85
Copy link

tehre85 commented Feb 20, 2024

@henne49 many thanks!!
Just upgraded the DTU to latest [v24.2.16] and the dbus-opendtu as well, working as accepted.

@2bbionic
Copy link

VRM has a delay sometimes. The remote console should show the correct data. grafik

My Cerbo has obviouly issues with transfering its data to the portal - -don't know why.
Anyway - data are received correctly from the OpenDTU and injected to the GUI.
Thanks!

@mapietru
Copy link
Author

Just upgraded opendtu to v24.2.16 and can confirm venus os and vrm portal are working fine with dbus-opdendtu-1.1.0. Thanks for the quick fix!

@Ayo91
Copy link

Ayo91 commented Feb 21, 2024

same for me, everything working again. Thanks so much

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

Successfully merging a pull request may close this issue.

6 participants