Open ikkerus opened 4 years ago
I am interested in this myself, I have no idea yet how get this information. From a coding view, I guess this information is not available, only the server side nows.
Given the issues we face with the app and web-app, battery and Sonnen might be still connected BUT the app infrastructure fails internally.
This is supported by an answer I got from Support saying, your battery is working and connect. The developers working on the app issues.
If anybody has an idea how get the information locally or by an easy anonymous XMLhttpRequest or REST-Api, I am more than happy to implement it.
Thanks for your quick response.
I was searching the web and also other Git-Repositories and code but didn't find anything. But when we installed our battery, the electrician gave me this adress: http://vpncheck.sonnenbatterie.de:1195/
This is to check, if your battery can open a VPN to the sonnen Infrastructure. And then for me this adress points to: proxy-srv9.sonnenbatterie.de | 85.10.226.94Hetzner Online GmbH (AS24940) So there seem to be several VPN-concentrators.
So you can implement a check if the VPN-Infrastructure is available. It's not the right solution, but it's at least something.
I did some more research. My pi-hole has helped me a lot with it.
Sonnen eco8 does some DNS-requests for the following URLs onlinecheck.sonnen.de spree.sonnenbatterie.de and some others I have seen, that I currently cannot see.
The funny thing is, that onlinecheck.sonnen.de just says: "OK - you are online."
And I checked, what I can retreive from the battery with the ioBroker "Sonnen" Adapter. See the attached "status.json.txt" to get the "online" status of the site.
See the sourcecode of the ioBroker Adapter here: https://github.com/foxriver76/ioBroker.sonnen
sonnen.0.status.json.txt sonnen.0.control.json.txt sonnen.0.info.json.txt
Hope this helps.
Thank you, I added to branch sonnenbatterie7-oldapi which I will merge to master soon. I needed a hackish (at least bit) since the online status API is running on standard port 80, while the API we use is running on port 8080 (or 7979 for old API of ECO 7)
I use an iframe to display the content directly. Reload is handled via exchanging the src value with itself. A regular reload would fail on cross origin checks - it still adds still message to Javascripts console.
So not yet solved, not sure if solvable at all using a plain user script.
Works great on eco 8!
Please include the online status into the Web-UI. That will enable users to properly check whether the battery is successfully connected to the sonnen infrastructure or not.
I don't know which data field is meant to use in the JSON file for this state.