python3 ./main.py 2021-12-31 12:13:51 INFO Starting 2021-12-31 12:13:51 INFO Connecting to Solis Modbus 2021-12-31 12:13:51 INFO Scraping... --- Logging error --- Traceback (most recent call last): File "/Users/peter/github/solismon3/./main.py", line 78, in scrape_solis regs = (modbus.read_input_registers(register_addr=reg, quantity=reg_len)) File "/Users/peter/github/solismon3/pysolarmanv5/pysolarmanv5.py", line 178, in read_input_registers modbus_values = self._get_modbus_response(mb_request_frame) File "/Users/peter/github/solismon3/pysolarmanv5/pysolarmanv5.py", line 130, in _get_modbus_response modbus_values = rtu.parse_response_adu(mb_response_frame, mb_request_frame) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/client/serial/rtu.py", line 190, in parse_response_adu function = create_function_from_response_pdu(resp_pdu, req_pdu) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/functions.py", line 132, in create_function_from_response_pdu function_code = pdu_to_function_code_or_raise_error(resp_pdu) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/functions.py", line 118, in pdu_to_function_code_or_raise_error raise error_code_to_exception_map[error_code] umodbus.exceptions.IllegalDataAddressError: The data address received in the request is not an allowable address for the server. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 1079, in emit msg = self.format(record) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 923, in format return fmt.format(record) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 659, in format record.message = record.getMessage() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 363, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/Users/peter/github/solismon3/./main.py", line 205, in publish_mqtt() File "/Users/peter/github/solismon3/./main.py", line 154, in publish_mqtt scrape_solis(debug) File "/Users/peter/github/solismon3/./main.py", line 81, in scrape_solis logging.error('Cannot read registers ' + str(reg) + " length " + str(reg_len), repr(e)) Message: 'Cannot read registers 33022 length 19' Arguments: ('IllegalDataAddressError()',) 2021-12-31 12:13:51 ERROR Retrying in 3s --- Logging error --- Traceback (most recent call last): File "/Users/peter/github/solismon3/./main.py", line 78, in scrape_solis regs = (modbus.read_input_registers(register_addr=reg, quantity=reg_len)) File "/Users/peter/github/solismon3/pysolarmanv5/pysolarmanv5.py", line 178, in read_input_registers modbus_values = self._get_modbus_response(mb_request_frame) File "/Users/peter/github/solismon3/pysolarmanv5/pysolarmanv5.py", line 130, in _get_modbus_response modbus_values = rtu.parse_response_adu(mb_response_frame, mb_request_frame) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/client/serial/rtu.py", line 190, in parse_response_adu function = create_function_from_response_pdu(resp_pdu, req_pdu) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/functions.py", line 132, in create_function_from_response_pdu function_code = pdu_to_function_code_or_raise_error(resp_pdu) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/functions.py", line 118, in pdu_to_function_code_or_raise_error raise error_code_to_exception_map[error_code] umodbus.exceptions.IllegalDataAddressError: The data address received in the request is not an allowable address for the server. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 1079, in emit msg = self.format(record) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 923, in format return fmt.format(record) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 659, in format record.message = record.getMessage() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 363, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/Users/peter/github/solismon3/./main.py", line 205, in publish_mqtt() File "/Users/peter/github/solismon3/./main.py", line 154, in publish_mqtt scrape_solis(debug) File "/Users/peter/github/solismon3/./main.py", line 81, in scrape_solis logging.error('Cannot read registers ' + str(reg) + " length " + str(reg_len), repr(e)) Message: 'Cannot read registers 33022 length 19' Arguments: ('IllegalDataAddressError()',) 2021-12-31 12:13:54 ERROR Retrying in 3s ^CTraceback (most recent call last): File "/Users/peter/github/solismon3/./main.py", line 78, in scrape_solis regs = (modbus.read_input_registers(register_addr=reg, quantity=reg_len)) File "/Users/peter/github/solismon3/pysolarmanv5/pysolarmanv5.py", line 178, in read_input_registers modbus_values = self._get_modbus_response(mb_request_frame) File "/Users/peter/github/solismon3/pysolarmanv5/pysolarmanv5.py", line 130, in _get_modbus_response modbus_values = rtu.parse_response_adu(mb_response_frame, mb_request_frame) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/client/serial/rtu.py", line 190, in parse_response_adu function = create_function_from_response_pdu(resp_pdu, req_pdu) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/functions.py", line 132, in create_function_from_response_pdu function_code = pdu_to_function_code_or_raise_error(resp_pdu) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/umodbus/functions.py", line 118, in pdu_to_function_code_or_raise_error raise error_code_to_exception_map[error_code] umodbus.exceptions.IllegalDataAddressError: The data address received in the request is not an allowable address for the server. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/peter/github/solismon3/./main.py", line 205, in publish_mqtt() File "/Users/peter/github/solismon3/./main.py", line 154, in publish_mqtt scrape_solis(debug) File "/Users/peter/github/solismon3/./main.py", line 83, in scrape_solis sleep(3) # hold before retry KeyboardInterrupt