Customizing a Raspberry PI Zero 2 W for PVS6
Awhile back I set up a Raspberry Pi to be a gateway to get access to my SunPower PVS6 monitoring system. That’s going great; the extra status info is really helpful and interesting. (Bonus screenshot below). I just bought a Raspberry Pi Zero 2 W to be the new computer for this. It’s so tiny it’ll fit entirely in the PVS6 box, powered by the USB that’s in there.

It works! The wifi is pretty flaky, despite me getting an amazing -30dB signal. It seems to be a problem with one specific access point, need to tinker some more. (Update: it may be wifi power saving.) The cable mess is pretty janky but it’s going to be shut inside a box, not sure I care. A smaller ethernet adapter would sure be nice.
Here’s my detailed software notes on setting this up.
- Mostly I’m just following this guide
- Use the RPi image installer to burn RPi OS Lite to a new SD card. Note this is a 32 bit OS.
- Create and configure a wpa_supplicant.conf file on the DOS partition of the SD card
- Create an empty ssh file on the DOS partition
- Boot the RPi, find its IP address via my DHCP server. (The name raspberrypi.local might also work.)
- Log in with ssh as pi/raspberry. Ignore locale complaints.
- Change the password for pi
- Become root
- apt update; apt upgrade. (This takes awhile!)
- Enable console autologin using raspi-config
- Fix locale using raspi-config
- Change the hostname to “pvspi0” using raspi-config
- Edit /etc/dhcpcd.conf so the ethernet is not used as a gateway
- apt install chrony
- apt install avahi-daemon
- Disable wifi power saving
- Reboot the pi
- Log in to pvspi0.local using pi/newpassword.
Note mDNS takes awhile to start working, a minute or two after the RPi starts up - Install haproxy
- Configure
/etc/haproxy/haproxy.cfg. I did not include stats.
A brief note on power consumption. Idle the RPi Zero 2 W seems to use about 165mA (at 5W). Running stress-ng -c 4 peaked at 570 mA. The magic number here is 500 mA, that’s the minimum power for a USB port. I expect the system to basically be idle all the time so I think I’m safe with no extra measures. But some ideas on reducing power consumption.
- Turn off HDMI. Instructions don’t work.
- Turn off LEDs
- Use fewer than 4 cores
- Turn off unnecessary daemons. bluetoothd, hciattach (the serial console)
Here’s the bonus snapshot of some of my Grafana config. Not running on the RPi; all its doing is proxying requests. These graphs are centered on showing the status of all 28 separate panels, something you can only do by accessing the PVS6 data directly.
