docker-voltronic-homeassistant icon indicating copy to clipboard operation
docker-voltronic-homeassistant copied to clipboard

Make a wiki so that we can share qpiri config

Open RHeynsZa opened this issue 3 years ago • 3 comments

As title

Couldnt find a place to share my Kodak 5kW King settings

# The following settings allow you to modify runtime buffers.
# N.B. These values may not be applicable to all inverter types, as such you will 
# need to run docker exec -it voltronic-mqtt bash -c '/opt/inverter-cli/bin/inverter_poller -d -1'
# or simply inverter_poller -d -1 to check for warnings or errors
# mentioned in https://github.com/ned-kelly/docker-voltronic-homeassistant/issues/5

# This allows you to modify the buffersize for the qpiri command
qpiri=104

# This allows you to modify the buffersize for the qpiws command
qpiws=40

# This allows you to modify the buffersize for the qmod command
qmod=5

# This allows you to modify the buffersize for the qpigs command
qpigs=110

RHeynsZa avatar Aug 01 '21 13:08 RHeynsZa

Mecer SOL-I-AX-3VP 3000VA/3000W

Working on below settings with qpiws commented out:

qpiri=97 #qpiws=67 qmod=5 qpigs=110

kronna avatar Nov 28 '22 15:11 kronna

Axpert MKSII (https://me3energy.ng/axpert-mks-ii-5kw-48v)

qpiri=102 qpiws=36 qmod=5 qpigs=110

Running through device=/dev/hidraw0

hanserasmus avatar Dec 15 '22 13:12 hanserasmus

Axpert King II 5KW

# This allows you to modify the buffersize for the qpiri command
qpiri=105

# This allows you to modify the buffersize for the qpiws command
qpiws=40

# This allows you to modify the buffersize for the qmod command
qmod=5

# This allows you to modify the buffersize for the qpigs command
qpigs=110

For future reference, to find the QPIRI value I had to:

  • install mpp-solar cli

  • run the QPIRI command to check whether it works at all via USB hidraw

     $ mpp-solar -p /dev/hidraw0 -c QPIRI
    
  • it worked, so I ran it in debug mode

      mpp-solar -p /dev/hidraw0 -c QPIRI -D
    
  • I noticed the line with the raw response

    ...
    usb response was: b'(230.0 21.7 230.0 50.0 21.7 5000 5000 48.0 46.0 42.0 56.4 54.0 2 030 010 1 0 0 9 01 0 0 54.0 0 1 000 0B\xd3\r'`
    ...
    
  • I copy pasted the response to echo -e to print the nonprintable character, and wc command to count the byte length

    $ echo -e "230.0 21.7 230.0 50.0 21.7 5000 5000 48.0 46.0 42.0 56.4 54.0 2 030 010 1 0 0 9 01 0 0 54.0 0 1 000 0B\xd3\r" | wc -c
         105
    

thus **105** is my magic number for the qpiri patameter

netmilk avatar Jan 23 '24 13:01 netmilk