dingo35 / SmartEVSE-3.5

Smart Electric Vehicle Charging Station (EVSE)
MIT License
38 stars 13 forks source link

Add voltage and power from mains #75

Closed devdems closed 4 weeks ago

fluppie commented 1 month ago

Nice! Would be cool if you can modify it for the EV meter voltages as well. In quite some installs I use the Sensorbox together with an Eastron 1P or 3P EV meter. With the L1 (and sometimes also L2, L3) voltages I can estimate the power output and would even be able to do some kWh measuring (of course not the same accuracy as wired MID mains meter) with W to Wh/kWh calculation (emonCMS input processors support this).

dingo35 commented 4 weeks ago

Why don't you rework your PR to a multiple register read scenario, where you have a function that calculates the distance between voltage and current registers, and if it doesn't exceed a threshold, read both of them in the same modbus request?

From the manufacturer: 1 byte costs approx. 1ms @ 9600bps, 1 register = 2 bytes so for 3 phases 6ms. As long as all data stays below 40-50ms (incl. overhead) that should work.

devdems commented 4 weeks ago

I got P1 meter that reads those values directly from the grid so this is not something I need anymore.

dingo35 commented 4 weeks ago

How about other people that need it?

devdems commented 4 weeks ago

They have a baseline there that can be improved.