Closed AFI4711 closed 1 year ago
Maybe a firmware update on your WiNet-S? Are you using a wired connection?
I use a wired connection (from a Fritz Repeater)
So you are using the wired connection with the WiNet-S? I don't have this hardware. I'm using the direct wired connection of the inverter, because my WiNet stick doesn't have a wired connection. And for this I use connection: modbus
. Maybe you can use this for your setup, too?
"Connection modbus" does not work:
2022-12-21 10:26:32 INFO Starting SunGather 0.3.9
2022-12-21 10:26:32 INFO Loaded config: config.yaml
2022-12-21 10:26:36 INFO Loaded registers: registers-sungrow.yaml
2022-12-21 10:26:36 INFO Registers file version: 0.2.1
2022-12-21 10:26:36 INFO Logging to console set to: DEBUG
2022-12-21 10:26:36 INFO Logging to file set to: DEBUG
2022-12-21 10:26:36 DEBUG Inverter Config Loaded: {'host': '192.168.0.135', 'port': 502, 'timeout': 300, 'retries': 5, 'slave': 1, 'scan_interval': 300, 'connection': 'modbus', 'model': None, 'smart_meter': False, 'use_local_time': False, 'log_console': 'DEBUG', 'log_file': 'DEBUG', 'level': 0}
2022-12-21 10:26:36 DEBUG Checking Modbus Connection
2022-12-21 10:26:36 INFO Modbus client is not connected, attempting to reconnect
2022-12-21 10:26:36 INFO Connection: ModbusTcpClient(192.168.0.135:502)
2022-12-21 10:26:36 ERROR Connection to (192.168.0.135, 502) failed: [Errno 111] Connection refused
Connection to (192.168.0.135, 502) failed: [Errno 111] Connection refused
2022-12-21 10:26:39 DEBUG load_registers: read, 4999:1
2022-12-21 10:26:39 ERROR Connection to (192.168.0.135, 502) failed: [Errno 111] Connection refused
Connection to (192.168.0.135, 502) failed: [Errno 111] Connection refused
I think there is a problem with the ports: the first connection with port 8082 (connection http) is successful, connection with port 80 or port 502 fail. But what could be the reason? Do you have access to port 80 via browser?
The problem is solved: After re-initializing the Repeater nmap shows additionally port 80!:
Nmap scan report for espressif (192.168.0.135)
Host is up (0.014s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
8082/tcp open blackice-alerts
Thanks for the help! WiNet-S now could be reached via browser (good test in case of connecting problems)
Hi, the code worked perfectly until 2022-12-13 (without changing anything), then I got this messages:
After several test which all failed I have installed the newest version and running in DEBUG mode:
See logfile attached Can you help me? May be a problem with port 80?
LOG-1.txt