question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error when running some inquiries

See original GitHub issue

Hi, first thank you very much for this software. I have tis inverter: https://www.amazon.de/dp/B07YL3VVQ2/ref=pe_3044161_185740101_TE_item and running mpp-solar version: 0.7.41 Atm I only use -c QPIGS and send the output via MQTT to ioBroker, so this is nothing I need here, just wanted to let you know.

I have a problem when running command different Qxxx commands, resulting in a traceback. This happens for: QBOOT, QOPM, QPGS, QPIRI, The outputs with the first 3 commands are (replace <command> by the command without Q:

Traceback (most recent call last):
  File "/usr/local/bin/mpp-solar", line 11, in <module>
    load_entry_point('mpp-solar', 'console_scripts', 'mpp-solar')()
  File "/root/src/mpp-solar/mppsolar/__init__.py", line 387, in main
    results = _device.run_command(command=_command)
  File "/root/src/mpp-solar/mppsolar/devices/device.py", line 309, in run_command
    decoded_response = self._protocol.decode(raw_response, command)
  File "/root/src/mpp-solar/mppsolar/protocols/abstractprotocol.py", line 263, in decode
    msgs[key] = [resp_format[2][int(result)], ""]
ValueError: invalid literal for int() with base 10: '<command>'

The output for QPIRI is:

Traceback (most recent call last):
  File "/usr/local/bin/mpp-solar", line 11, in <module>
    load_entry_point('mpp-solar', 'console_scripts', 'mpp-solar')()
  File "/root/src/mpp-solar/mppsolar/__init__.py", line 387, in main
    results = _device.run_command(command=_command)
  File "/root/src/mpp-solar/mppsolar/devices/device.py", line 309, in run_command
    decoded_response = self._protocol.decode(raw_response, command)
  File "/root/src/mpp-solar/mppsolar/protocols/abstractprotocol.py", line 254, in decode
    msgs[key] = [int(result), resp_format[2]]
ValueError: invalid literal for int() with base 10: '-'


Greetings from Rhein-Main-Area, Germany Jörg

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jblancecommented, Apr 13, 2021

QOPM isnt working for you (it also doesnt return a valid result on my system), but the validity check only looks at the crc and the result is the same as the command for some reason, so it tests as valid QPIRI is failng as it was expecting a number and is getting a - I have made some changes that should fix this bug in version 0.7.42 The QPIRI command does give an answer to what QOPM should return - it looks like QOPM isnt supported on all models (mine included)

QPIRI result from your debug:

Command: QPIRI - Current Settings inquiry
------------------------------------------------------------
Parameter                     	Value           Unit
ac_input_voltage              	230.0          	V   
ac_input_current              	13.0           	A   
ac_output_voltage             	230.0          	V   
ac_output_frequency           	50.0           	Hz  
ac_output_current             	13.0           	A   
ac_output_apparent_power      	3000           	VA  
ac_output_active_power        	2400           	W   
battery_voltage               	24.0           	V   
battery_recharge_voltage      	23.0           	V   
battery_under_voltage         	21.0           	V   
battery_bulk_charge_voltage   	28.2           	V   
battery_float_charge_voltage  	27.0           	V   
battery_type                  	AGM            	    
max_ac_charging_current       	30             	A   
max_charging_current          	50             	A   
input_voltage_range           	Appliance      	    
output_source_priority        	SBU first      	    
charger_source_priority       	Solar first    	    
max_parallel_units            	-              	units
machine_type                  	Off Grid       	    
topology                      	transformer    	    
output_mode                   	single machine output	    
battery_redischarge_voltage   	26.0           	V   
pv_ok_condition               	As long as one unit of inverters has connect PV, parallel system will consider PV OK	    
pv_power_balance              	PV input max current will be the max charged current	    

Thanks again for the feedback and diagnosis

0reactions
jblancecommented, Apr 14, 2021

I have created new issues for the problems above, will close this and track changes in #88 and #89

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can you remove hard inquiries from your credit reports?
In a Nutshell. Too many hard inquiries can hurt your credit, but you can request to remove hard inquiries that are inaccurate.
Read more >
Error Message when i run the generic inquiry | Community
Hi Not sure if anyone know that what problem to caused below error message when i run a new created generic inquiry?
Read more >
What to Do If Your Credit Is Pulled Without Your Consent
Notify the credit bureaus and dispute the inquiry. If your credit was run in error or without your authorization, you have the right...
Read more >
Disputing Errors on Your Credit Reports | Consumer Advice
Some employers use credit reports in hiring decisions. ... If you think someone might be using your personal information, go to IdentityTheft.gov to...
Read more >
Error when running Custom Report /Inquiry
Cannot create a record in Parameters (TmpTable01). To use databaseInsert(), the RecordSortedList must be instantiated on the server-side. any ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found