ErrorWarningSystemArrayLogin work_state_2 Stop meter_power -216 meter_a_phase_power 0 meter_b_phase_power 0 meter_c_phase_power 0 load_power 1948 daily_export_energy 268 total_export_energy 30460 daily_import_energy 73 total_import_energy 5876 daily_direct_energy_consumption 166 total_direct_energy_consumption 51323 mppt_4_voltage 0.0 mppt_4_current 0.0 mppt_5_voltage 0.0 mppt_5_current 0.0 mppt_6_voltage 0.0 mppt_6_current 0.0 mppt_7_voltage 0.0 mppt_7_current 0.0 mppt_8_voltage 0.0 mppt_8_current 0.0 monthly_power_yields 6553.5 mppt_9_voltage 0.0 mppt_9_current 0.0 mppt_10_voltage 0.0 mppt_10_current 0.0 mppt_11_voltage 0.0 mppt_11_current 0.0 mppt_12_voltage 0.0 mppt_12_current 0.0 negative_voltage_to_the_ground 6553.5 bus_voltage 0.0 pid_work_state 0 pid_alarm_code 0 Logged 72 registers to Console Publish HTTP Register Value device_type_code 9219 nominal_active_power 8.0 output_type 2P Exception in thread Thread-16 (publish): Exception in thread Thread-17 (publish): Traceback (most recent call last): Traceback (most recent call last): daily_power_yields 43.4 total_power_yields 1624.7 total_running_time 11796 internal_temperature 59.4 total_apparent_power 65535 mppt_1_voltage 378.2 mppt_1_current 2.1 mppt_2_voltage 314.6 mppt_2_current 4.1 mppt_3_voltage 0.0 mppt_3_current 0.0 total_dc_power 2117 phase_a_voltage 240.0 phase_b_voltage 0.0 phase_c_voltage 0.0 phase_a_current 8.7 phase_b_current 6553.5 phase_c_current 6553.5 File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 946, in run self._target(*self._args, **self._kwargs) File "/usr/src/sungather/exports/mqtt.py", line 38, in publish self.run() File "/usr/local/lib/python3.10/threading.py", line 946, in run self.sensor_topic = self.sensor_topic.replace('{model}', inverter.get('device_type_code', 'unknown').replace('.','')) AttributeError: 'int' object has no attribute 'replace' self._target(*self._args, **self._kwargs) File "/usr/src/sungather/exports/pvoutput.py", line 66, in publish now = datetime.datetime.strptime(inverter.get('timestamp'), "%Y-%m-%d %H:%M:%S") TypeError: strptime() argument 1 must be str, not None 2021-12-26 16:07:05 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 59979) 2021-12-26 16:07:05 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 38701) 2021-12-26 16:07:05 DEBUG Scanning: read, 5000:100 2021-12-26 16:07:05 DEBUG load_registers: read, 5000:100 2021-12-26 16:07:05 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 59091) 2021-12-26 16:07:05 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 56305) 2021-12-26 16:07:05 DEBUG Current transaction state - TRANSACTION_COMPLETE 2021-12-26 16:07:05 DEBUG Running transaction 14 2021-12-26 16:07:05 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 53169) 2021-12-26 16:07:05 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 56215) 2021-12-26 16:07:05 DEBUG SEND: 0x0 0xe 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0x88 0x0 0x64 2021-12-26 16:07:05 DEBUG New Transaction state 'SENDING' 2021-12-26 16:07:05 DEBUG Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' 2021-12-26 16:07:06 DEBUG Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' 2021-12-26 16:07:06 DEBUG RECV: 0x0 0xe 0x0 0x0 0x0 0xcb 0x1 0x4 0xc8 0x0 0x50 0x0 0x0 0x1 0xb2 0x6c 0xbf 0x0 0x0 0x2e 0x14 0x0 0x0 0x2 0x51 0xff 0xff 0xff 0xff 0xe 0xbc 0x0 0x14 0xc 0x66 0x0 0x28 0xff 0xff 0xff 0xff 0x8 0xe 0x0 0x0 0x9 0x66 0xff 0xff 0xff 0xff 0x0 0x55 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x7 0xd9 0x0 0x0 0x0 0xa7 0x0 0x0 0x3 0xe8 0x1 0xf6 0xff 0xff 0x0 0x0 0x7 0xe5 0x0 0xb 0x0 0xe 0x0 0x11 0x0 0x1b 0x0 0x31 0x0 0x0 0xff 0xff 0xff 0xff 0x0 0x64 0x0 0x18 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x3 0x9d 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x1 0x0 0x0 0xff 0xa4 0xff 0xff 0xff 0xff 0x7f 0xff 0xff 0xff 0x7f 0xff 0xff 0xff 0x7f 0xff 0x7 0xb2 0x0 0x0 0x1 0xc 0x0 0x0 0x76 0xfc 0x0 0x3 0x0 0x49 0x0 0x0 0x16 0xf4 0x0 0x1 2021-12-26 16:07:06 DEBUG Processing: 0x0 0xe 0x0 0x0 0x0 0xcb 0x1 0x4 0xc8 0x0 0x50 0x0 0x0 0x1 0xb2 0x6c 0xbf 0x0 0x0 0x2e 0x14 0x0 0x0 0x2 0x51 0xff 0xff 0xff 0xff 0xe 0xbc 0x0 0x14 0xc 0x66 0x0 0x28 0xff 0xff 0xff 0xff 0x8 0xe 0x0 0x0 0x9 0x66 0xff 0xff 0xff 0xff 0x0 0x55 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x7 0xd9 0x0 0x0 0x0 0xa7 0x0 0x0 0x3 0xe8 0x1 0xf6 0xff 0xff 0x0 0x0 0x7 0xe5 0x0 0xb 0x0 0xe 0x0 0x11 0x0 0x1b 0x0 0x31 0x0 0x0 0xff 0xff 0xff 0xff 0x0 0x64 0x0 0x18 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x3 0x9d 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x1 0x0 0x0 0xff 0xa4 0xff 0xff 0xff 0xff 0x7f 0xff 0xff 0xff 0x7f 0xff 0xff 0xff 0x7f 0xff 0x7 0xb2 0x0 0x0 0x1 0xc 0x0 0x0 0x76 0xfc 0x0 0x3 0x0 0x49 0x0 0x0 0x16 0xf4 0x0 0x1 2021-12-26 16:07:06 DEBUG Factory Response[ReadInputRegistersResponse: 4] 2021-12-26 16:07:06 DEBUG Adding transaction 14 2021-12-26 16:07:06 DEBUG Getting transaction 14 2021-12-26 16:07:06 DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' 2021-12-26 16:07:06 DEBUG Scanning: read, 5100:100 2021-12-26 16:07:06 DEBUG load_registers: read, 5100:100 2021-12-26 16:07:06 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 33719) 2021-12-26 16:07:06 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 38293) 2021-12-26 16:07:06 DEBUG Current transaction state - TRANSACTION_COMPLETE 2021-12-26 16:07:06 DEBUG Running transaction 15 2021-12-26 16:07:06 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 44839) 2021-12-26 16:07:06 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 60991) 2021-12-26 16:07:06 DEBUG SEND: 0x0 0xf 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0xec 0x0 0x64 2021-12-26 16:07:06 DEBUG New Transaction state 'SENDING' 2021-12-26 16:07:06 DEBUG Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' 2021-12-26 16:07:07 DEBUG Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' 2021-12-26 16:07:07 DEBUG RECV: 0x0 0xf 0x0 0x0 0x0 0xcb 0x1 0x4 0xc8 0x0 0xa6 0x0 0x0 0xc8 0x7b 0x0 0x0 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xaa 0x1 0x4 0x3 0xcf 0x0 0x6 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x3f 0x77 0x0 0x4 0xff 0xff 0xff 0xff 0x13 0x9f 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 2021-12-26 16:07:07 DEBUG Processing: 0x0 0xf 0x0 0x0 0x0 0xcb 0x1 0x4 0xc8 0x0 0xa6 0x0 0x0 0xc8 0x7b 0x0 0x0 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xaa 0x1 0x4 0x3 0xcf 0x0 0x6 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x3f 0x77 0x0 0x4 0xff 0xff 0xff 0xff 0x13 0x9f 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 2021-12-26 16:07:07 DEBUG Factory Response[ReadInputRegistersResponse: 4] 2021-12-26 16:07:07 DEBUG Adding transaction 15 2021-12-26 16:07:07 DEBUG Getting transaction 15 2021-12-26 16:07:07 DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' 2021-12-26 16:07:07 DEBUG Scanning: read, 5200:100 2021-12-26 16:07:07 DEBUG load_registers: read, 5200:100 2021-12-26 16:07:07 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 54853) 2021-12-26 16:07:07 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 42739) 2021-12-26 16:07:07 DEBUG Current transaction state - TRANSACTION_COMPLETE 2021-12-26 16:07:07 DEBUG Running transaction 16 2021-12-26 16:07:07 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 60349) 2021-12-26 16:07:07 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 34509) 2021-12-26 16:07:07 DEBUG SEND: 0x0 0x10 0x0 0x0 0x0 0x6 0x1 0x4 0x14 0x50 0x0 0x64 2021-12-26 16:07:07 DEBUG New Transaction state 'SENDING' 2021-12-26 16:07:07 DEBUG Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' 2021-12-26 16:07:07 DEBUG Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' 2021-12-26 16:07:07 DEBUG RECV: 0x0 0x10 0x0 0x0 0x0 0x3 0x1 0x84 0x2 2021-12-26 16:07:07 DEBUG Processing: 0x0 0x10 0x0 0x0 0x0 0x3 0x1 0x84 0x2 2021-12-26 16:07:07 DEBUG Factory Response[132] 2021-12-26 16:07:07 DEBUG Adding transaction 16 2021-12-26 16:07:07 DEBUG Getting transaction 16 2021-12-26 16:07:07 DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' 2021-12-26 16:07:07 WARNING Modbus connection failed: Exception Response(132, 4, IllegalAddress) total_active_power 2063 total_reactive_power 165 power_factor 1.0 grid_frequency 50.23 work_state_1 Run alarm_time_year 2021 alarm_time_month 11 alarm_time_day 14 alarm_time_hour 17 alarm_time_minute 27 alarm_time_second 0 alarm_code_1 0 nominal_reactive_power 2.4 array_insulation_resistance 925 active_power_regulation_setpoint 65535 reactive_power_regulation_setpoint 0 work_state_2 Stop meter_power -151 meter_a_phase_power 0 meter_b_phase_power 0 meter_c_phase_power 0 load_power 1965 daily_export_energy 268 total_export_energy 30460 daily_import_energy 73 total_import_energy 5876 daily_direct_energy_consumption 166 total_direct_energy_consumption 51323 mppt_4_voltage 0.0 mppt_4_current 0.0 mppt_5_voltage 0.0 mppt_5_current 0.0 mppt_6_voltage 0.0 mppt_6_current 0.0 mppt_7_voltage 0.0 mppt_7_current 0.0 mppt_8_voltage 0.0 mppt_8_current 0.0 monthly_power_yields 6553.5 mppt_9_voltage 0.0 mppt_9_current 0.0 mppt_10_voltage 0.0 mppt_10_current 0.0 mppt_11_voltage 0.0 mppt_11_current 0.0 mppt_12_voltage 0.0 mppt_12_current 0.0 negative_voltage_to_the_ground 6553.5 bus_voltage 0.0 pid_work_state 0 pid_alarm_code 0 Logged 72 registers to Console Publish HTTP Register Value device_type_code 9219 nominal_active_power 8.0 output_type 2P daily_power_yields 43.4 total_power_yields 1624.7 total_running_time 11796 internal_temperature 59.3 total_apparent_power 65535 mppt_1_voltage 377.2 mppt_1_current 2.0 mppt_2_voltage 317.4 mppt_2_current 4.0 mppt_3_voltage 0.0 mppt_3_current 0.0 total_dc_power 2062 phase_a_voltage 240.6 phase_b_voltage 0.0 phase_c_voltage 0.0 phase_a_current 8.5 phase_b_current 6553.5 phase_c_current 6553.5 total_active_power 2009 total_reactive_power 167 power_factor 1.0 grid_frequency 50.23 work_state_1 Run alarm_time_year 2021 alarm_time_month 11 alarm_time_day 14 alarm_time_hour 17 alarm_time_minute 27 alarm_time_second 0 alarm_code_1 0 nominal_reactive_power 2.4 array_insulation_resistance 925 Exception in thread Thread-20 (publish): active_power_regulation_setpoint 65535 reactive_power_regulation_setpoint 0 work_state_2 Stop meter_power -91 meter_a_phase_power 0 meter_b_phase_power 0 meter_c_phase_power 0 load_power 1970 daily_export_energy 268 total_export_energy 30460 daily_import_energy 73 total_import_energy 5876 daily_direct_energy_consumption 166 total_direct_energy_consumption 51323 mppt_4_voltage 0.0 mppt_4_current 0.0 mppt_5_voltage 0.0 mppt_5_current 0.0 mppt_6_voltage 0.0 mppt_6_current 0.0 mppt_7_voltage 0.0 mppt_7_current 0.0 mppt_8_voltage 0.0 mppt_8_current 0.0 Exception in thread Thread-21 (publish): Traceback (most recent call last): Traceback (most recent call last): monthly_power_yields 6553.5 mppt_9_voltage 0.0 mppt_9_current 0.0 mppt_10_voltage 0.0 mppt_10_current 0.0 mppt_11_voltage 0.0 mppt_11_current 0.0 mppt_12_voltage 0.0 mppt_12_current 0.0 negative_voltage_to_the_ground 6553.5 File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner self.run() self.run() File "/usr/local/lib/python3.10/threading.py", line 946, in run File "/usr/local/lib/python3.10/threading.py", line 946, in run self._target(*self._args, **self._kwargs) self._target(*self._args, **self._kwargs) File "/usr/src/sungather/exports/mqtt.py", line 38, in publish File "/usr/src/sungather/exports/pvoutput.py", line 66, in publish self.sensor_topic = self.sensor_topic.replace('{model}', inverter.get('device_type_code', 'unknown').replace('.','')) now = datetime.datetime.strptime(inverter.get('timestamp'), "%Y-%m-%d %H:%M:%S") AttributeError: 'int' object has no attribute 'replace' TypeError: strptime() argument 1 must be str, not None 2021-12-26 16:07:37 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 58027) 2021-12-26 16:07:37 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 41363) 2021-12-26 16:07:37 DEBUG Scanning: read, 5000:100 2021-12-26 16:07:37 DEBUG load_registers: read, 5000:100 2021-12-26 16:07:37 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 37211) 2021-12-26 16:07:37 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 46505) 2021-12-26 16:07:37 DEBUG Current transaction state - TRANSACTION_COMPLETE 2021-12-26 16:07:37 DEBUG Running transaction 17 2021-12-26 16:07:37 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 34753) 2021-12-26 16:07:37 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 51957) 2021-12-26 16:07:37 DEBUG SEND: 0x0 0x11 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0x88 0x0 0x64 2021-12-26 16:07:37 DEBUG New Transaction state 'SENDING' 2021-12-26 16:07:37 DEBUG Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' 2021-12-26 16:07:38 DEBUG Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' 2021-12-26 16:07:38 DEBUG RECV: 0x0 0x11 0x0 0x0 0x0 0xcb 0x1 0x4 0xc8 0x0 0x50 0x0 0x0 0x1 0xb3 0x6c 0xbf 0x0 0x0 0x2e 0x14 0x0 0x0 0x2 0x51 0xff 0xff 0xff 0xff 0xe 0xa3 0x0 0x14 0xc 0x42 0x0 0x28 0xff 0xff 0xff 0xff 0x8 0xe 0x0 0x0 0x9 0x62 0xff 0xff 0xff 0xff 0x0 0x55 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x7 0xfe 0x0 0x0 0x0 0xa3 0x0 0x0 0x3 0xe8 0x1 0xf6 0xff 0xff 0x0 0x0 0x7 0xe5 0x0 0xb 0x0 0xe 0x0 0x11 0x0 0x1b 0x0 0x31 0x0 0x0 0xff 0xff 0xff 0xff 0x0 0x64 0x0 0x18 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x3 0x9d 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x1 0x0 0x0 0xff 0xc2 0xff 0xff 0xff 0xff 0x7f 0xff 0xff 0xff 0x7f 0xff 0xff 0xff 0x7f 0xff 0x7 0xc0 0x0 0x0 0x1 0xc 0x0 0x0 0x76 0xfc 0x0 0x3 0x0 0x49 0x0 0x0 0x16 0xf4 0x0 0x1 2021-12-26 16:07:38 DEBUG Processing: 0x0 0x11 0x0 0x0 0x0 0xcb 0x1 0x4 0xc8 0x0 0x50 0x0 0x0 0x1 0xb3 0x6c 0xbf 0x0 0x0 0x2e 0x14 0x0 0x0 0x2 0x51 0xff 0xff 0xff 0xff 0xe 0xa3 0x0 0x14 0xc 0x42 0x0 0x28 0xff 0xff 0xff 0xff 0x8 0xe 0x0 0x0 0x9 0x62 0xff 0xff 0xff 0xff 0x0 0x55 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x7 0xfe 0x0 0x0 0x0 0xa3 0x0 0x0 0x3 0xe8 0x1 0xf6 0xff 0xff 0x0 0x0 0x7 0xe5 0x0 0xb 0x0 0xe 0x0 0x11 0x0 0x1b 0x0 0x31 0x0 0x0 0xff 0xff 0xff 0xff 0x0 0x64 0x0 0x18 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x3 0x9d 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x1 0x0 0x0 0xff 0xc2 0xff 0xff 0xff 0xff 0x7f 0xff 0xff 0xff 0x7f 0xff 0xff 0xff 0x7f 0xff 0x7 0xc0 0x0 0x0 0x1 0xc 0x0 0x0 0x76 0xfc 0x0 0x3 0x0 0x49 0x0 0x0 0x16 0xf4 0x0 0x1 2021-12-26 16:07:38 DEBUG Factory Response[ReadInputRegistersResponse: 4] 2021-12-26 16:07:38 DEBUG Adding transaction 17 2021-12-26 16:07:38 DEBUG Getting transaction 17 2021-12-26 16:07:38 DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' 2021-12-26 16:07:38 DEBUG Scanning: read, 5100:100 2021-12-26 16:07:38 DEBUG load_registers: read, 5100:100 2021-12-26 16:07:38 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 33093) 2021-12-26 16:07:38 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 36389) 2021-12-26 16:07:38 DEBUG Current transaction state - TRANSACTION_COMPLETE 2021-12-26 16:07:38 DEBUG Running transaction 18 2021-12-26 16:07:38 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 47441) 2021-12-26 16:07:38 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 33715) 2021-12-26 16:07:38 DEBUG SEND: 0x0 0x12 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0xec 0x0 0x64 2021-12-26 16:07:38 DEBUG New Transaction state 'SENDING' 2021-12-26 16:07:38 DEBUG Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' 2021-12-26 16:07:38 DEBUG Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' 2021-12-26 16:07:38 DEBUG RECV: 0x0 0x12 0x0 0x0 0x0 0xcb 0x1 0x4 0xc8 0x0 0xa7 0x0 0x0 0xc8 0x7c 0x0 0x0 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xaa 0x1 0x4 0x3 0xcf 0x0 0x6 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x3f 0x78 0x0 0x4 0xff 0xff 0xff 0xff 0x13 0x9d 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 2021-12-26 16:07:38 DEBUG Processing: 0x0 0x12 0x0 0x0 0x0 0xcb 0x1 0x4 0xc8 0x0 0xa7 0x0 0x0 0xc8 0x7c 0x0 0x0 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xaa 0x1 0x4 0x3 0xcf 0x0 0x6 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x3f 0x78 0x0 0x4 0xff 0xff 0xff 0xff 0x13 0x9d 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 2021-12-26 16:07:38 DEBUG Factory Response[ReadInputRegistersResponse: 4] 2021-12-26 16:07:38 DEBUG Adding transaction 18 2021-12-26 16:07:38 DEBUG Getting transaction 18 2021-12-26 16:07:38 DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' 2021-12-26 16:07:38 DEBUG Scanning: read, 5200:100 2021-12-26 16:07:38 DEBUG load_registers: read, 5200:100 2021-12-26 16:07:38 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 59443) 2021-12-26 16:07:38 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 50385) 2021-12-26 16:07:38 DEBUG Current transaction state - TRANSACTION_COMPLETE 2021-12-26 16:07:38 DEBUG Running transaction 19 2021-12-26 16:07:38 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 45029) 2021-12-26 16:07:38 DEBUG Connection to Modbus server established. Socket ('172.17.0.7', 37747) 2021-12-26 16:07:38 DEBUG SEND: 0x0 0x13 0x0 0x0 0x0 0x6 0x1 0x4 0x14 0x50 0x0 0x64 2021-12-26 16:07:38 DEBUG New Transaction state 'SENDING' 2021-12-26 16:07:38 DEBUG Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' 2021-12-26 16:07:38 DEBUG Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' 2021-12-26 16:07:38 DEBUG RECV: 0x0 0x13 0x0 0x0 0x0 0x3 0x1 0x84 0x2 2021-12-26 16:07:38 DEBUG Processing: 0x0 0x13 0x0 0x0 0x0 0x3 0x1 0x84 0x2 2021-12-26 16:07:38 DEBUG Factory Response[132] 2021-12-26 16:07:38 DEBUG Adding transaction 19 2021-12-26 16:07:38 DEBUG Getting transaction 19 2021-12-26 16:07:38 DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' 2021-12-26 16:07:38 WARNING Modbus connection failed: Exception Response(132, 4, IllegalAddress) Exception in thread Thread-24 (publish): Exception in thread Thread-25 (publish): Traceback (most recent call last): Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner self.run() self.run() File "/usr/local/lib/python3.10/threading.py", line 946, in run File "/usr/local/lib/python3.10/threading.py", line 946, in run self._target(*self._args, **self._kwargs) File "/usr/src/sungather/exports/pvoutput.py", line 66, in publish now = datetime.datetime.strptime(inverter.get('timestamp'), "%Y-%m-%d %H:%M:%S") TypeError: strptime() argument 1 must be str, not None self._target(*self._args, **self._kwargs) File "/usr/src/sungather/exports/mqtt.py", line 38, in publish self.sensor_topic = self.sensor_topic.replace('{model}', inverter.get('device_type_code', 'unknown').replace('.','')) AttributeError: 'int' object has no attribute 'replace'