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

Adding MPPT1 and MPPT2 string volatge, watts, Temp - API call included #39

Open
bobthebuilder2020 opened this issue Jan 27, 2021 · 3 comments

Comments

@bobthebuilder2020
Copy link

bobthebuilder2020 commented Jan 27, 2021

Hi thanks for a great sensor in Home Assistant. Its working well for me, could you add this feature if possible?

Here is the code below for the API call.

// API URL - Fronius
$inverterDataURL = "http://".$dataManagerIP."/solar_api/v1/GetArchiveData.cgi?Scope=System&StartDate=".$date."&EndDate=".$date."&Channel=Voltage_DC_String_1&Channel=Current_DC_String_1&Channel=Voltage_DC_String_2&Channel=Current_DC_String_2&Channel=Temperature_Powerstage";

More info here, sorry im not a programmer so limited on explaining.

https://github.com/grann0s/_pushPVStringData.php/blob/master/_pushPVStringData.php

Bob

@nilrog
Copy link
Contributor

nilrog commented Jun 2, 2021

The problem here is that this is not part of the real-time API. This is archived data which, A: you cannot query as frequently, and B: you will also receive the data in batch format.

@QbaF
Copy link

QbaF commented Jun 2, 2021

Ad. A. how frequently it is possible to query?

@nilrog
Copy link
Contributor

nilrog commented Jun 2, 2021

I think the smallest data chunks is 5 mins...if you query more frequently you will get the same data...but the problem is that this API will provide you with a set of readings, not a single reading for each parameter. So it is more intended for post-display/analyzis than showing data in HA.

Apparently this data can be obtained in realtime over modbus/tcp. There are some post over at Home Assistant that shows how they obtained some data that way.

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

3 participants