2022-12-15 08:51:28 INFO Starting SunGather 0.3.9 2022-12-15 08:51:28 INFO Loaded config: config.yaml 2022-12-15 08:51:29 INFO Loaded registers: registers-sungrow.yaml 2022-12-15 08:51:29 INFO Registers file version: 0.2.1 2022-12-15 08:51:29 INFO Logging to console set to: DEBUG 2022-12-15 08:51:29 INFO Logging to file set to: DEBUG 2022-12-15 08:51:29 DEBUG Inverter Config Loaded: {'host': '192.168.0.135', 'port': 502, 'timeout': 300, 'retries': 5, 'slave': 1, 'scan_interval': 300, 'connection': 'http', 'model': None, 'smart_meter': False, 'use_local_time': False, 'log_console': 'DEBUG', 'log_file': 'DEBUG', 'level': 0} 2022-12-15 08:51:29 DEBUG Checking Modbus Connection 2022-12-15 08:51:29 INFO Modbus client is not connected, attempting to reconnect 2022-12-15 08:51:29 INFO Connection: SungrowModbusWebClient_0.3.2(192.168.0.135:8082) 2022-12-15 08:51:29 DEBUG Connection to websocket server established: ws://192.168.0.135:8082/ws/home/overview 2022-12-15 08:51:29 DEBUG {'result_code': 1, 'result_msg': 'success', 'result_data': {'service': 'connect', 'token': '60581efb-1a33-4f11-99e8-dd6e4c3ab58b', 'uid': 1, 'tips_disable': 0}} 2022-12-15 08:51:29 INFO Token Retrieved: 60581efb-1a33-4f11-99e8-dd6e4c3ab58b 2022-12-15 08:51:29 DEBUG Requesting Device Information 2022-12-15 08:51:29 DEBUG {'result_code': 1, 'result_msg': 'success', 'result_data': {'service': 'devicelist', 'list': [{'id': 1, 'dev_id': 1, 'dev_code': 3585, 'dev_type': 35, 'dev_procotol': 2, 'dev_sn': 'A2162102870', 'dev_name': 'SH6.0RT(COM1-001)', 'dev_model': 'SH6.0RT', 'port_name': 'COM1', 'phys_addr': '1', 'logc_addr': '1', 'link_status': 1, 'init_status': 1, 'dev_special': '0', 'list': []}], 'count': 1}} 2022-12-15 08:51:29 DEBUG Retrieved: dev_type = 35, dev_code = 3585 2022-12-15 08:51:32 DEBUG load_registers: read, 4999:1 2022-12-15 08:51:32 DEBUG Current transaction state - IDLE 2022-12-15 08:51:32 DEBUG Running transaction 1 2022-12-15 08:51:32 DEBUG SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0x87 0x0 0x1 2022-12-15 08:51:32 DEBUG New Transaction state 'SENDING' 2022-12-15 08:51:32 DEBUG param_type: 0, start_address: 5000, count: 1, dev_id: 1 2022-12-15 08:51:32 DEBUG Calling: http://192.168.0.135/device/getParam?dev_id=1&dev_type=35&dev_code=3585&type=3¶m_addr=5000¶m_num=1¶m_type=0&token=60581efb-1a33-4f11-99e8-dd6e4c3ab58b&lang=en_us&time123456=1671090692 2022-12-15 08:51:32 DEBUG Starting new HTTP connection (1): 192.168.0.135:80 2022-12-15 08:51:32 WARNING No data returned for read, 4999:1 No data returned for read, 4999:1 2022-12-15 08:51:32 DEBUG Modbus Error: [Connection] HTTP Request failed: HTTPConnectionPool(host='192.168.0.135', port=80): Max retries exceeded with url: /device/getParam?dev_id=1&dev_type=35&dev_code=3585&type=3¶m_addr=5000¶m_num=1¶m_type=0&token=60581efb-1a33-4f11-99e8-dd6e4c3ab58b&lang=en_us&time123456=1671090692 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))') 2022-12-15 08:51:32 INFO Model detection failed, please set model in config.py 2022-12-15 08:51:32 DEBUG load_registers: read, 4989:10 2022-12-15 08:51:32 DEBUG Current transaction state - SENDING 2022-12-15 08:51:32 DEBUG Running transaction 2 2022-12-15 08:51:32 DEBUG SEND: 0x0 0x2 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0x7d 0x0 0xa 2022-12-15 08:51:32 DEBUG New Transaction state 'SENDING' 2022-12-15 08:51:32 DEBUG param_type: 0, start_address: 4990, count: 10, dev_id: 1 2022-12-15 08:51:32 DEBUG Calling: http://192.168.0.135/device/getParam?dev_id=1&dev_type=35&dev_code=3585&type=3¶m_addr=4990¶m_num=10¶m_type=0&token=60581efb-1a33-4f11-99e8-dd6e4c3ab58b&lang=en_us&time123456=1671090692 2022-12-15 08:51:32 DEBUG Starting new HTTP connection (1): 192.168.0.135:80 2022-12-15 08:51:32 WARNING No data returned for read, 4989:10 No data returned for read, 4989:10 2022-12-15 08:51:32 DEBUG Modbus Error: [Connection] HTTP Request failed: HTTPConnectionPool(host='192.168.0.135', port=80): Max retries exceeded with url: /device/getParam?dev_id=1&dev_type=35&dev_code=3585&type=3¶m_addr=4990¶m_num=10¶m_type=0&token=60581efb-1a33-4f11-99e8-dd6e4c3ab58b&lang=en_us&time123456=1671090692 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))') 2022-12-15 08:51:32 INFO Serial detection failed, please set serial number in config.py 2022-12-15 08:51:32 INFO Loading Export: exports\mqtt 2022-12-15 08:51:32 ERROR Failed loading export: 'NoneType' object has no attribute 'replace' Please make sure mqtt.py exists in the exports folder Failed loading export: 'NoneType' object has no attribute 'replace' Please make sure mqtt.py exists in the exports folder 2022-12-15 08:51:32 DEBUG Checking Modbus Connection 2022-12-15 08:51:32 DEBUG Modbus, Session is still connected 2022-12-15 08:51:32 DEBUG Scraping: read, 5000:100 2022-12-15 08:51:32 DEBUG load_registers: read, 5000:100 2022-12-15 08:51:32 DEBUG Current transaction state - SENDING 2022-12-15 08:51:32 DEBUG Running transaction 3 2022-12-15 08:51:32 DEBUG SEND: 0x0 0x3 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0x88 0x0 0x64 2022-12-15 08:51:32 DEBUG New Transaction state 'SENDING' 2022-12-15 08:51:32 DEBUG param_type: 0, start_address: 5001, count: 100, dev_id: 1 2022-12-15 08:51:32 DEBUG Calling: http://192.168.0.135/device/getParam?dev_id=1&dev_type=35&dev_code=3585&type=3¶m_addr=5001¶m_num=100¶m_type=0&token=60581efb-1a33-4f11-99e8-dd6e4c3ab58b&lang=en_us&time123456=1671090692 2022-12-15 08:51:32 DEBUG Starting new HTTP connection (1): 192.168.0.135:80 2022-12-15 08:51:32 WARNING No data returned for read, 5000:100 No data returned for read, 5000:100 2022-12-15 08:51:32 DEBUG Modbus Error: [Connection] HTTP Request failed: HTTPConnectionPool(host='192.168.0.135', port=80): Max retries exceeded with url: /device/getParam?dev_id=1&dev_type=35&dev_code=3585&type=3¶m_addr=5001¶m_num=100¶m_type=0&token=60581efb-1a33-4f11-99e8-dd6e4c3ab58b&lang=en_us&time123456=1671090692 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))') 2022-12-15 08:51:32 DEBUG Scraping: hold, 4999:10 2022-12-15 08:51:32 DEBUG load_registers: hold, 4999:10 2022-12-15 08:51:32 DEBUG Current transaction state - SENDING 2022-12-15 08:51:32 DEBUG Running transaction 4 2022-12-15 08:51:32 DEBUG SEND: 0x0 0x4 0x0 0x0 0x0 0x6 0x1 0x3 0x13 0x87 0x0 0xa 2022-12-15 08:51:32 DEBUG New Transaction state 'SENDING' 2022-12-15 08:51:32 DEBUG param_type: 1, start_address: 5000, count: 10, dev_id: 1 2022-12-15 08:51:32 DEBUG Calling: http://192.168.0.135/device/getParam?dev_id=1&dev_type=35&dev_code=3585&type=3¶m_addr=5000¶m_num=10¶m_type=1&token=60581efb-1a33-4f11-99e8-dd6e4c3ab58b&lang=en_us&time123456=1671090692 2022-12-15 08:51:32 DEBUG Starting new HTTP connection (1): 192.168.0.135:80 2022-12-15 08:51:32 WARNING No data returned for hold, 4999:10 No data returned for hold, 4999:10 2022-12-15 08:51:32 DEBUG Modbus Error: [Connection] HTTP Request failed: HTTPConnectionPool(host='192.168.0.135', port=80): Max retries exceeded with url: /device/getParam?dev_id=1&dev_type=35&dev_code=3585&type=3¶m_addr=5000¶m_num=10¶m_type=1&token=60581efb-1a33-4f11-99e8-dd6e4c3ab58b&lang=en_us&time123456=1671090692 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))') 2022-12-15 08:51:32 INFO Disconnecting: SungrowModbusWebClient_0.3.2(192.168.0.135:8082) 2022-12-15 08:51:32 INFO Disconnecting: None 2022-12-15 08:51:32 WARNING Data collection failed, skipped exporting data. Retying in 300 secs Data collection failed, skipped exporting data. Retying in 300 secs 2022-12-15 08:51:32 DEBUG Processing Time: 0.02 secs 2022-12-15 08:51:32 INFO Next scrape in 299 secs