gadget78 / inverter-homeassistant

Programmatically read data from your Voltronic, Axpert, Mppsolar PIP, Voltacon, Effekta etc Inverter and send it to Home Assistant via MQTT - Works with RS232 & USB!
GNU General Public License v3.0
15 stars 4 forks source link

Updates to work with HA 2021.9+ energy topics and general improvements #2

Open shampeon opened 3 years ago

shampeon commented 3 years ago

Fixes gadget78/inverter-homeassistant#1. Fixes gadget78/inverter-homeassistant#3. Fixes #5. Fixes #6.

Fix for missing $MQTT_SERIAL in topic names.

I also added an examples section to the README so people can add their model's settings.

I changed the state_class to work with 2021.9+.

I fixed the output of the inverter mode to not be a measurement and instead just display the mode string.

tanqt5041 commented 2 years ago

@shampeon Hi, May I know how did u configure for this? My one always showing 0 for everything image image

shampeon commented 2 years ago

The inverter load is the how many kWh your inverter consumed on the AC output side. It's the amount of energy used by the devices you run with your inverter.

The grid consumption is the energy flowing into your house from the grid, and these inverters can't measure that. You'd need a separate energy monitor that uses CT clamps on the grid input lines.

TheRoarman commented 2 years ago

Hi Ian, All sounds good what you have done. Hopefully in the next week or so i'll give your changes try. Just one thing is that my VM II has three additional fields at the end of REPLY1, so I'll need to change/check that before I can fully test. My VM II includes the PV_input_watt. I'm not too sure what the other two fields are yet. They generally ZERO.

example of a diff run against my main.cpp and NED-Kelly's: