error when running some inquiries
See original GitHub issueHi, 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:
- Created 2 years ago
- Comments:11 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
Thanks again for the feedback and diagnosis
I have created new issues for the problems above, will close this and track changes in #88 and #89