home > home-automation > garden-power-monitoring

Garden Power Monitoring

10 | 03 Aug 2024

Power Controller

I've installed a EPEVER MPPT Solar Charge Controller, this controls power between a solar panel, and a battery, and output.

The charge controller can be interfaced with modbus, so with a serial to usb I can grab all the data out.

Required USB Serial

DTech USB to RS485 or RS422 Serial Communication Port Converter

Github Code

I wrote a little program in C (C11) using libmodbus, this can query the epever charge controller for stats over modbus protocol via usb.

Sample output

{
"garden-solar": {
"PVvolt": 23.09,
"PVamps": 0.16,
"PVwatt": 3.86,
"PVkwh2d": 0.09,
"PVkwh": 46.80,
"BAvolt": 13.80,
"BAamps": 0.27,
"BAwatt": 3.72,
"BAperc": 100,
"BAtemp": 22.01,
"DCvolt": 13.80,
"DCamps": 0.06,
"DCwatt": 0.96,
"DCkwh2d": 0.04,
"DCkwh": 36.05,
"END": 1
}
}

This output can be read by home assitant sensors, but i might convert the out to prometheus format later and have ha query prometheus instead.

I currently consume the metrics into zabbix and home assistant

zabbix graph

Post a Comment