Programmatically read data from your Solar Inverter (Voltronic, Axpert, Mppsolar PIP, Voltacon, Effekta etc) and interface with Home Assistant via MQTT - Works with RS232 & USB!

Common problem with many of the inverters that are copies/“clones” or the older models (I also have this problem with one of mine).

Ended up putting the following in my cron on system boot:

stty -F /dev/ttyUSB0 2400 raw

Thanks @ned-kelly

Tried that, doesnt seem to work. screen /dev/ttyUSB0 9600 and then quitting does the trick for me.

for anyone else having similar issues.

this is in my crontab:
@reboot /home/pi/scripts/establishInverterConnection.sh &

this is my shell script:

screen -dms xxx /dev/ttyUSB0 9600
sleep 15
pkill -f “SCREEN -dms xxx /dev/ttyUSB0 9600”

I have the same problem “voltronic_PV_in_watts it just stays at 0 constantly”
Have anyone a solution for this problem ?
Thank you.

no solution sorry

@ned-kelly

im having issues with docker saying ive done too many pull requests when on the addon store on homeassistant, reading up its saying ive done too many (over 100 requests) within 6 hours

ive read somwhere that mentioned watchtower was to play on this, so i disabled all my addon auto updates but i remember during the install on my raspberry pi’s somthing about watchtower whist installing this mpp solar data reader.

how often does it ping watchtower looking for updates? this is the only thing i can think of thats stopping my homeassitant being able to download updates/addons due to watchtower being pinged so many times within 6 hours???

would this program be the possible cause as i have it on 2 raspberry pi’s so each one must be contacting watchtower looking for an update on the docker server?

Failed to install addon

500 Server Error: Internal Server Error (“toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit”)

that is the message im getting now since docker changed somthing on the 20th november to only allow 100 anonimous requests on docker?!?!?

Help!!! lol

Hi all,and thank for this very usefull topic and to ned-Kelly for this super usefull integration for the inverter in Home assistant.
I m very new here,and i encontered some problems about setting up my Inverter
Brand:Sako Model:Sunon 5KW,but now is about working…i thing.
I m running on a old laptop and Ubuntu 20.04
This my setting also for ader user:
device=/dev/hidraw0
run_interval=120
mperage_factor=1.0
watt_factor=1.01
qpiri=98
qpiws=36
qmod=5
qpigs=110

root@gwsolar:/opt/ha-inverter-mqtt-agent# docker exec -it voltronic-mqtt bash -c ‘/opt/inverter-cli/bin/inverter_poller -d -1’
Sun Dec 6 16:24:03 2020 INVERTER: Debug set
Sun Dec 6 16:24:03 2020 INVERTER: Current CRC: 49 C1
Sun Dec 6 16:24:03 2020 INVERTER: QMOD reply size (5 bytes)
Sun Dec 6 16:24:03 2020 INVERTER: QMOD: 5 bytes read: (S
Sun Dec 6 16:24:03 2020 INVERTER: QMOD query finished
Sun Dec 6 16:24:03 2020 INVERTER: Current CRC: B7 A9
Sun Dec 6 16:24:04 2020 INVERTER: QPIGS reply size (110 bytes)
Sun Dec 6 16:24:04 2020 INVERTER: QPIGS: 110 bytes read: (227.4 49.9 000.0 00.0 0000 0000 000 030 00.00 000 000 0030 00.0 000.0 00.00 00000 00000000 00 00 00000 000
Sun Dec 6 16:24:04 2020 INVERTER: QPIGS query finished
Sun Dec 6 16:24:04 2020 INVERTER: Current CRC: F8 54
Sun Dec 6 16:24:04 2020 INVERTER: QPIRI reply size (98 bytes)
Sun Dec 6 16:24:04 2020 INVERTER: QPIRI: 98 bytes read: (230.0 21.7 230.0 50.0 21.7 5000 5000 48.0 46.0 42.0 56.4 54.0 0 30 060 0 2 2 1 01 0 0 54.0 0 1
Sun Dec 6 16:24:04 2020 INVERTER: QPIRI query finished
Sun Dec 6 16:24:04 2020 INVERTER: Current CRC: B4 DA
Sun Dec 6 16:24:05 2020 INVERTER: QPIWS reply size (36 bytes)
Sun Dec 6 16:24:05 2020 INVERTER: QPIWS: 36 bytes read: (10000000000000000100001000000000
Sun Dec 6 16:24:05 2020 INVERTER: QPIWS query finished
INVERTER: ampfactor from config is 1.00
INVERTER: wattfactor from config is 1.01
{

This my Readings:(inverter is connected only to Ac from grid)

“Load_watt”:0,

“Load_watthour”:0.0000,

“Load_va”:0,

“Bus_voltage”:30,

“Heatsink_temperature”:28,

“Battery_capacity”:0,

“Battery_voltage”:0.00,

“Battery_charge_current”:0,

“Battery_discharge_current”:0,

“Load_status_on”:0,

“SCC_charge_on”:0,

“AC_charge_on”:0,

“Battery_recharge_voltage”:46.0,

“Battery_under_voltage”:42.0,

“Battery_bulk_voltage”:56.4,

“Battery_float_voltage”:54.0,

“Max_grid_charge_current”:30,

“Max_charge_current”:60,

“Out_source_priority”:2,

“Charger_source_priority”:2,

“Battery_redischarge_voltage”:-0.0,

“Warnings”:“10000000000000000100001000000000”

A: What is this warning message?..

B:After lunching : docker exec -it voltronic-mqtt bash -c ‘/opt/inverter-cli/bin/inverter_poller -d -1’ must I stop the command?

At this point i m stacked… i can not see anything In Home assistant dashboard…
I configured Mqtt Broker …but not sure if Ip setting are correct…
I missing something,at this point the guide become not comprensible to my limited capability in this sector.

I please need some help,something is not clear in my mind:
I woul like to know about what I should set as Mqtt server Ip adress,some specific example please.
In my server System Information have;
IpV4 Address for br-383a0xxxx: 172.19.0.1
IpV4 Address for for docker : 172.17.0.1
IpV4 Address for eno1: 192.168.5.117
IpV4 Address for eno1: 192.168.5.116
IpV4 Address for hassio: 172.30.32.1

Which ip should put for mqtt server/brocker?

Up…

Please i need some help…
I got this error message from inverter: “Warnings”:“10000000000000000100001000000000”
Can see all log in previus post,
Thank you.

Please i need help…
I m stacked here from 5 days already…
I can offer a pizza or a dinner by paypal is someone issokind to help me.

Thank you

looks like a warning of no solar connected, as it shows other readings but as your not running the inverter properly with battery, ac and solar input its throwing an error code

Ok…thank you very much.Inverter is still not connected ,that why the error.

Firstly thank you so much for the effort thats gone into this project ive been following for a while but have only just become confident/deluded enough to think i can take it on:

I am so sorry for the Noob question, but i’m learning too many things too quick for my old brain :slight_smile:
I managed to get the prerequisites up and running (not without some issues) and config files have been changed to suit my HA system (seperate PI same network) my problem occurs when I try and standup the docker.compose section, I get the following message

ERROR: Couldn’t connect to Docker daemon at http+docker://localhost - is it running?
If it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Anyone help me from going insane!!

Thanks in advance

Hi…unfurtunatelly im Noob same you(or may be more)…i just get Iverter connect 2 days ago.
In my case have 1 laptop with Home Assistant installed and a Raspberry Pi4 connected to inverter.

to test docker write this in command line: docker run hello-world

To connect inverter you shoul run this command :

sudo docker exec -it voltronic-mqtt bash -c /opt/inverter-cli/bin/inverter_poller -d -1’
or
docker exec -it voltronic-mqtt bash -c /opt/inverter-cli/bin/inverter_poller -d -1’
but you must run it from inside directory /opt/ha-inverter-mqtt-agent

so write cd /opt/ha-inverter-mqtt-agent and then
sudo docker exec -it voltronic-mqtt bash -c /opt/inverter-cli/bin/inverter_poller -d -1’

I hope this can help you.

Let me know
Hi

I need little help…:
i can not have all data from Inverter :Have: Panel Voltage, Panel Ampere…but not Panel Watt.In the Inverter screen have Panel Watt!

-[sensor.voltronic_pv_in_current] 1.5 unit_of_measurement: A friendly_name:
voltronic_PV_in_current icon: mdi:solar-panel-large

  • [sensor.voltronic_pv_in_voltage] 206.6 unit_of_measurement: V friendly_name:
    voltronic_PV_in_voltage icon: mdi:solar-panel-large

  • [sensor.voltronic_pv_in_watthour 0 unit_of_measurement: Wh friendly_name:
    voltronic_PV_in_watthour icon: mdi:solar-panel-large

  • [sensor.voltronic_pv_in_watts] 0 unit_of_measurement: W friendly_name: voltronic_PV_in_watts icon: mdi:solar-panel-large

how can do?

and also I would like the set on Inverter.conf to get data every 15 second,what i should write? run_interval=60 or 240?.As example:

(120 = every 30 seconds)…

run_interval=120

and after that i must do sudo docker-compose down
and sudo docker-compose up -d for restart the container with new setting?

I try ,but i cant change the reading time.

Any suggestion.

Hi All, i notice this afternoon that my HA dashboard is updating very sluggish, initially i thought mqtt-push is not running, after investigating i found that /opt/inverter-cli/inverter_poller -1 take super long to return, with linux time command i have observed times of over 1min and i know for a fact it used to be low in the 2 to 3 seconds.
Has anyone come across this before?
so far i have restarted my rPi several times running the inverter software ( its a rPi 2 running rasbian lite and inverter tool installed on the OS - no Docker container)
I have not yet restarted my inverter, not sure if that would help, can it possibly be that the board is on its way out ?

Edit: i have been abusing it slightly as i tried to get the inverter polls as Realtime as possible, so i had consecutive mqttt-push.sh running in diffirent time intervals.

@mbladen,if this is a linux OS normally the user that you run the command form is not part of the docker group.
so before we troubleshoot your docker, run the docker command with sudo instead. if that worked and you would like your user to be part of the docker group you can run sudo usermod -aG docker $USER

Update: i have since hard restarted the inverter (removed all power sources for few seconds until inverter switched off) this coupled with some changes in my settings seemed to have worked.
My concern here is that it used to work just fine, but making changes in the inverter.conf seemed to not break my config, which lead to the question was my config wrong from the start, or is this just another config set that works?
Here is some more details on my inverter:

Brand: The Sun Pays (Axpert type rebranded by local company)
Model: Inverter 5KVA-48VDC
Inverter Mode:
Rated Power: 5000VA/4000W
DC Input: 48VDC, 87A
AC Output: 230VAC, 50Hz, 22A, 1 ₵
AC Charger Mode:
AC Input: 230VAC, 50Hz, 36A, 1 ₵
DC Output: 54VDC, 10-60A
AC Output: 230VAC, 50Hz, 22A, 1 ₵
Solar Charger Mode:
Rated Current: 80A
System Voltage: 48VDC
Max Solar Voltage(VOC): 145VDC

Inverter Firmware: LC1 72.70C

My qpiws as it used to be:
qpiri=102
qpiws=67
qmod=5
qpigs=110

My qpiws now:
qpiri=102
qpiws=54
qmod=5
qpigs=110

Not sure how it work, or still works but its does, hope this helps someone else sometime.

I do a similar solution because my inverter pip 2424mse1 not change the status when I sent a command with mqtt… Have you find any solution to change the status whitout use a. Power button?

my solution to this is using a free program called solpiplog great bit of software and also has a easy to use gui, both my inverters in parallel work with the software just on one pi3, also works with my victron bmv and it also supports batrium, pylontech and ant bms

i had icc before i found this and icc is a buggy peice of crap that constantly crashes and locks up when you change the mqtt broker details from its local storage not worth the money i payed for it, it polls the inveerters too quickly with no way to slow it down causing the inverters serial ports to lock up

1 Like

I have a question about these ( https://voltaconsolar.com/max-off-grid-inverter-7kw.html ) inverters.

If I buy 3 of them, for a 3-phase system, and connect them to the same battery; without solar panels connected; will it charge the battery using the utility net using all 3 phases? Or will only one ‘master’ be charging the battery?

This is important for me, but I was unable to find that information in the manual… I’m planning on building a battery system using these inverters and batteries. If i connect this to the already existing utility net in my home, where other solar inverters are already injecting, the batteries will be charged from solar/utility net without needing to connect the panels to the inverter directly. (I don’t want to replace the existing inverters…)

If these inverters can charge the battery from 3 phases at the same time (from the utility net) I can keep the existing solar inverters and the battery will be charged from solar and/or utility when it’s set to charging mode. (With the code above I will then be able to programatically command when to charge the battery. For example, only charge when the panels are over producting and/or take weather forecasts into account…)

if they operate like my 5048mg’s theyll both charge the battery at the same time, how much amps you want to put in can be configured but both will do the same charge.

i couldnt see it not working the same as they are essentially the same inverter only bigger.