Anyone else using a Raspberry Pi to log their battery data, or is there a simpler way?

by Forest Daz · 4 weeks ago 51 views 6 replies
Forest Daz
Forest Daz
Regular
64 posts
thumb_up 35 likes
Joined Jul 2023
4 weeks ago
#32089

Been running a Pi Zero W on my static van setup for about two years now, pulling data from my Victron SmartShunt via Bluetooth and shoving it into InfluxDB with Grafana on top — yes, I am that person, and no, I don't regret it.

That said, calling it "simple" is a generous reinterpretation of the word.

If you just want battery state-of-charge on your phone without spending a weekend swearing at Python scripts, the Victron VRM portal does 90% of what most people actually need, assuming you've got a GX device or a Cerbo kicking about. Costs nowt beyond the hardware you've likely already got.

The Pi route genuinely shines if you want:

  • Local logging when your internet's down (which in my neck of the woods is basically always)
  • Custom alerts — mine texts me if the battery drops below 20% overnight
  • Obsessive granularity that your spouse will find deeply alarming

For the truly faint-hearted there's VictronConnect on your phone, dead easy, free, tells you most of what you need.

My honest take: if you've never touched Linux, start with VRM. If you have touched Linux and enjoyed it, the Pi rabbit hole is magnificent and will consume your soul in the best possible way.

What's everyone else running? Anyone gone down the Home Assistant route for this, or is that a separate layer of madness I haven't got to yet?

DODQueen
DODQueen
Regular
92 posts
thumb_up 24 likes
Joined Jul 2023
4 weeks ago
#32121

@ForestDaz you're not alone — I've got a similar setup on my cabin, though I went Pi 4 because I'm also pulling MQTT data from a few other sensors (temperature, humidity in the battery compartment, that sort of thing).

One thing worth mentioning for anyone who finds this daunting: Victron's VRM portal does a surprisingly decent job out of the box if you've got a Cerbo GX or even a cheap Venus device flashed onto an old Pi. Zero config basically.

But if you want full data ownership and custom dashboards, the InfluxDB/Grafana route is genuinely satisfying once it's running. The hardest bit was getting the Bluetooth connection stable — ended up using dbus-victron rather than polling directly.

What retention period are you keeping your InfluxDB data at? I'm currently at 90 days before downsampling.

Norfolk OffGrid
Norfolk OffGrid
Member
4 posts
thumb_up 2 likes
Joined Nov 2025
4 weeks ago
#32168

Really great to see others going down this route! I've been running a Pi 3B+ at my place in Norfolk for about 18 months, logging from a SmartShunt plus a couple of DS18B20 temperature sensors on my battery bank. One thing I'd suggest to anyone just starting out — stick your Pi on a small UPS hat (I use the Waveshare one) so you don't corrupt your SD card during low-voltage events. Learned that the hard way! Also switched from SD to a USB SSD for the OS, which has made it considerably more reliable.

For anyone thinking this sounds too complicated, honestly the Victron VRM portal does 80% of what most people need without touching a single command line. The Pi route is brilliant if you want custom alerts or to combine data from non-Victron kit though. 🔋

OldSailor
OldSailor
Senior Member
200 posts
thumb_up 60 likes
Joined Oct 2023
4 weeks ago
#32172

Been running VenusOS on a dedicated CCGX for years, but I'll admit the Pi route is tempting — @ForestDaz, have you looked at venus-raspberry-pi? Victron's own Venus OS image runs beautifully on a Pi and gives you the full VRM portal integration without reinventing the InfluxDB wheel yourself.

For anyone wanting something genuinely simpler though: Victron's VRM portal does 90% of this out of the box if you've got a GX device or Cerbo — no Pi, no faff, no 2am debugging sessions wondering why InfluxDB ate your retention policy again (not that I'd know anything about that).

That said, if you enjoy the tinkering — and clearly @DODQueen and @NorfolkOffGrid do — the Pi approach gives you proper local control, which matters when your data connection is a wet piece of string.

Kev Lee
Kev Lee
Active Member
20 posts
Joined Jan 2025
4 weeks ago
#32193

Went down the Pi rabbit hole about three years ago with a Zero 2 W running VenusOS — genuinely transformative for understanding what my Fogstar Drift 200Ah cells are actually doing overnight.

The killer feature nobody mentions: historical SOC data during a power cut. When the grid goes down and I'm running purely off battery, I can pull up Grafana on my phone and see exactly how much capacity I burned through the last three similar events. Takes the guesswork out of load-shedding decisions completely.

@OldSailor the CCGX is rock solid but the Pi route means you're not locked into Victron hardware forever. My SmartShunt talks to it beautifully, but I could theoretically swap in a different shunt tomorrow without replacing the whole monitoring stack.

Only caveat — give it a decent SD card. Lost six months of data to a cheap SanDisk once. Never again.

Ozzy97
Ozzy97
Member
4 posts
Joined Sep 2025
4 weeks ago
#32201

Great thread! I went a slightly different route — running a Pi 4 with Node-RED sitting between my SmartShunt and InfluxDB, which lets me trigger automations based on SOC thresholds rather than just logging passively. So if my batteries drop below 20% overnight, it fires a notification to my phone. Took a weekend to set up properly but honestly worth every minute.

One thing I'd flag for anyone starting out — get a decent UPS hat for the Pi itself, or power it directly from a 5V buck converter off your 12V bank rather than a cheap USB adapter. Lost a few weeks of data early on due to SD card corruption from dodgy power. @ForestDaz have you had any stability issues running the Zero W long-term? Curious whether the lower RAM causes problems with InfluxDB under load.

Marine Gaz
Marine Gaz
Senior Member
114 posts
thumb_up 48 likes
Joined Jun 2023
3 weeks ago
#32755

@ForestDaz solid setup, been doing something similar but I'd push back slightly on the Pi Zero W — struggled with Bluetooth reliability on mine, especially in cold weather. Upgraded to a Pi 3A+ and it's been rock solid since.

One thing nobody's mentioned: Victron's VRM portal is genuinely decent now if you just want remote monitoring without the faff. Slap a Cerbo GX or even a cheap Venus GX in and you're done — no self-hosting, no InfluxDB headaches.

That said, if you want real granularity for EV charging sessions (which I do), the Pi/Grafana stack wins hands down. I track charge cycles against my Fogstar cells and the data's been invaluable for spotting degradation early.

@Ozzy97 Node-RED middle layer is smart — might nick that idea actually.

Log in to join the discussion.

Log In to Reply