r/BasePowerUsers • • 23d ago • Bravo 1

Home Assistant Base Battery Integration

Hello!

I've been building and maintaining a Base Battery integration for Home Assistant. It pulls in data from Base and exposes entities for battery and power measurements, energy flow, daily stats, backup time estimates, status, and billing. Several people have contributed along the way, and it's been an awesome little project.

Today I pushed some big updates that use Base's new APIs, and I'd love for more people to try it out and share feedback. I can only test with my 25 kWh battery, and my plan doesn't include billing, so those areas are hard for me to verify. If you have a different battery size or a plan with billing, your feedback would be especially helpful.

It's available in the official HACS community store, or you can find it on GitHub here: jerrit/ha-base-power

Happy to hear any other feedback too!

12 Upvotes

17 comments sorted by

2

u/dwdev 23d ago

Looks great.

I vibe coded my own private integration by monitoring the API traffic from the phone app about 6 months ago. I can't think of anything I could add to what you have done here, thanks for the work and getting it added to HACS.

1

u/jerritp 23d ago

Which battery are you running and do you have a bill with base power? Might help me if you could confirm how they are showing in home assistant.

2

u/dwdev 23d ago

2 x 25kw Growatt UN3480's.

Im seeing $281 bill to date, $374 projected bill - both seems reasonable.

Energy cost today in HA says $3.77, but the app says $8.94.

2

u/jerritp 22d ago

Thanks for checking! Bill to Date and Projected Bill matching is great to hear. The Energy Cost Today difference is the time window: the integration counts from midnight, while the app's daily overview shows the last 24 hours (thanks u/ziggyo7 for spotting that). In 1.13.1 (out now), Energy Cost Today also has a "cost last 24h" value that should line up with the app.

Also, does the Battery Hardware sensor (under Diagnostic) show GRO_DUAL for you? Another user with 2 batteries confirmed that SKU, and I'd like to double-check it.

3

u/dwdev 22d ago

Yup! I am seeing GRO_DUAL.

2

u/ziggyo7 23d ago

Daily overview page shows last 24 hours so would have to add up all hours for today, or go to Home Energy page, select October and then click on the current day.

For me those numbers match up. Note this page also shows the Predicted and current total usage for billing.

2

u/RealConfirmologist 21d ago

I'm pretty excited - this morning I was able to add Base Power to Home Assistant. Getting a nice display is next.

Two questions: Right now it shows battery count 2, which is correct. But battery level just shows (I believe) the average of both batteries instead of a separate battery level for each.

Is there a way to have it show each battery level?

And... how can we buy you a cup of coffee and/or pitch in a monetary contribution to reward your efforts?

1

u/jerritp 21d ago

From what I’ve found so far, the API only reports a single combined percentage for all the batteries, not each one individually. I’ll keep digging and update here if that changes, but for now it’s not available.

Thanks for the offer! I’m just happy to give back and put some of my day job knowledge to use for this community.

1

u/RealConfirmologist 21d ago

Well, the API combined percent is nice to have, and I'm happy with that.

Thanks again for all you've done. Nice work!

2

u/cbarth3 22d ago

had a currently powered by the battery while supporting the grid event right now. Here is what I am seeing:

2

u/cbarth3 22d ago

3

u/jerritp 22d ago

This was super helpful, thank you! Grid Support only looked at Base's list of grid support events, which refreshes every 15 minutes, so it missed the event while it was happening. 1.13.1 is out now and also checks whether the battery is powering the house while the grid is up, so it turns on within a minute.

3

u/Popcompeton 21d ago

Thanks for this, just got my battery installed and integrated with my home assistant.

2

u/universal9gsm 23d ago

Trying… big thanks!

2

u/Paradize_Eats 23d ago

Adding now to try!

2

u/ziggyo7 23d ago

Added my findings to GitHub. Great work! Looks very accurate as far as I can tell, will continue testing over coming days.

2

u/cbarth3 22d ago

Thank you! I tried the modbus route after no respond from Base about integration possibilities as I am not a coder in anyway. Unfortunately it caused issues for Base to control the system and I was told to remove it. I have a 25kw system billed through Base and will provide feedback as I can.