djansen1987 / SAJeSolar

SAJ eSolar Portal Sensors
GNU General Public License v3.0
22 stars 14 forks source link

Home Battery Storage (Energy Integration) #21

Closed BeardyBrah closed 2 years ago

BeardyBrah commented 2 years ago

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

djansen1987 commented 2 years ago

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

djansen1987 commented 2 years ago

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

djansen1987 commented 2 years ago

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

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

BeardyBrah commented 2 years ago

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

djansen1987 commented 2 years ago

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

djansen1987 commented 2 years ago

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

BeardyBrah commented 2 years ago

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

djansen1987 commented 2 years ago
  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

BeardyBrah commented 2 years ago

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

djansen1987 commented 2 years ago

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!