djansen1987/SAJeSolar

Home Battery Storage (Energy Integration)

Closed this issue · 10 comments

Hi Mate,
Thank you for the new updates. Your work is incredible. Happy to keep assisting in any way I can.

The final enhancement could be under the Energy Dashboard. The Home Battery Storage section allows to monitor battery Input & Output.

Screenshot 2022-01-15 090120

Output via "sensor.esolar_batterypower" can't be selected.
I don't beleive we've found a method to read the input (yet...) I'll do some research and see if I can find something and report back

i think it must be these 2:
image

I then need to know the parameters in the API and then find out which unit of measurement home assistant wants these in

Think these are the ones:
https://fop.saj-electric.com/saj/monitor/site/getPlantDetailChart2?plantuid=xxxxxxx
viewBean ->chargeElec
viewBean ->dischargeElec

Found them, created new release. Please let me know if it works for you ?

https://github.com/djansen1987/SAJeSolar/releases/tag/v1.2.9

Its reading something, however I don't think its the right value.
Heres my SAJ Portal vs. HA readings
Screenshot 2022-01-16 092623
Screenshot 2022-01-16 092647

Are you able to look at the api level to see the values ? Could be Convert from watt to kwp over a longer term

Also look at the inverter view,there you can find the screenshot I taken.

BTW energie dashboard needs kwp not watt if an correct for battery

I've taken a look at the end of the day - I've highlighted everything that matches however can't seem to verify the daily of battery in/out.

Screenshot 2022-01-16 212714

  1. what if you go to: (inverter)
    image

  2. then click on the module number:
    image

  3. scroll down to the bottom of the page:
    image

The statistic shows me an overall usage by the looks of it
Doesnt break it down over a 24 hour use

Screenshot 2022-01-17 201412

Having said that, the sensors you've found appear to be reading correctly (at a guess), heres todays usage.

14.9 kWh consumption in the home (total)
around 50% from solar directly
20 %'ish from the battery
30 %'ish from grid imports

Screenshot 2022-01-17 201506

The home assistant Energy Dashboard takes the total, as this number should only increase it can there for know the usage over time by calculating it's first value and date/time and so on. Thanks for confirming!