Open nmthas opened 3 years ago
Hey @nmthas
to be honest, I don't know exactly what all those values are either. We're just using the API Alpha ESS is using in their webpanel. The problem right now: We don't know how the webpanel (and mobile app) calculates the current total load. This is the only value missing as far as we reverse engineered their code.
I think, you saw my example in the Readme?
Hey Thanks for responding,
If you have all of those values, isn't the current load just the combination thereof.
i.e. Solar Watts Being Generated +or- Grid I/O (depending on flow direction) +or- Battery I/O (depending on flow)
I also guess that your calculations for the sensors (eg Solar Generation + solar_grid_i_o_total
I have some issues with the data I'm receiving which I am still trying to rectify (for example I'm not getting a real value for input from the grid, at this stage I think it is an install/configuration issue. I am trying to get the installer to fix at the moment, I will have a look at this in more detail when I'm receiving a full data set from my battery.
Regards,
Nick
Nick Mathas +61 408 464 143 @.***
On Wed, 20 Oct 2021 at 06:50, DasLetzteEinhorn @.***> wrote:
Hey @nmthas https://github.com/nmthas
to be honest, I don't know exactly what all those values are either. We're just using the API Alpha ESS is using in their webpanel. The problem right now: We don't know how the webpanel (and mobile app) calculates the current total load. This is the only value missing as far as we reverse engineered their code.
I think, you saw my example in the Readme https://github.com/DasLetzteEinhorn/AlphaESS_Monitor_Hass#configuration?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DasLetzteEinhorn/AlphaESS_Monitor_Hass/issues/6#issuecomment-947053883, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJKMAIV3GZ3RAC3DZPYQEPTUHXDWXANCNFSM5GFJQV4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
After watching the data for a while, pbat seems to report 0 more often than not when the battery is at 100% However the web interface shows power going in or out (as solar production drops) , the reporting doesnt seem to be accurate enough to calculate load? Load would be a good figure to have available, but how?
To be fair, it works well with the code below:
- platform: template
sensors:
solar_load_total:
friendly_name: "Solar Load Total"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.solar_grid_i_o_l1') | float + states('sensor.solar_battery_i_o') | float + states('sensor.solar_gen_ppv1') | float + states('sensor.solar_gen_ppv2') | float}}"
The values seem consistent with the interface. Using a custom card - power-distribution-card
@Spookster - I am not using this specific code yet, but I'm trying to work out the data. I'm struggling to figure out how that card you mentioned above works - I'm revisiting some code I wrote a while ago to run my own local 'www.alphaess.com' (I did this because the battery talks over the Internet in the clear, and that's not something I'm keen on). That display above is basically what I am looking for. I just don't get how you got the 'Home' from the value_template: bit.
@DasLetzteEinhorn - I'm also intrigued by your thing in the sample: " value_json.ppv1 + value_json.ppv2 + value_json.pmeter_dc" - how did you figure out to add pmeter_dc to the two to get what you needed? Just watching the data in the web, and working it out based on the values you saw in the fields, or is it more obvious?
Just watching the data in the web, and working it out based on the values you saw in the fields, or is it more obvious?
Basically yes: we compared the raw data at the same time with the displayed data on the website and tested how we came up with the total value. So pure trial and error.
Thanks - that gives me something to go on. As I won't ever reconnect my battery to the real server, this is a challenge for me :) I REALLY appreciate the simple data you just provided! Gives me something to work off :)
@Spookster I like your Power distribution card. Is that your own or can you direct me to where I can get it.
@bmannz Sure, check out https://github.com/JonahKr/power-distribution-card :)
Hi and thanks for your work so far. I am using this addon to communicate with my Alpha-ESS battery system. I am trying to understand what each of the data items mean. Do you have a description of each item?
I would like to use something like custom:power-distribution-card (https://github.com/JonahKr/power-distribution-card) to display the values in Home Assistant. FYI I have attached a copy of the logfile.
Something like the following is what I am after (with real numbers):