srcfl / srcful-gateway

Srcful energy gateway to connect your solar inverter and mine src-token
https://srcful.io
MIT License
3 stars 1 forks source link

Wrong IP-Address printed in ModbusTCP:Creating after a rescan #201

Open davmoz opened 2 weeks ago

davmoz commented 2 weeks ago

Investigate this.

Previously connected to 192.168.50.158, then disconnects, then finds 192.168.50.158, then print ModbusTCP:Creating with: ('192.168.50.96', 1502..) then actually connects to 192.168.50.158

srcful-gw  | DEBUG:server.wifi.wifi:device ip address 192.168.50.48
srcful-gw  | INFO:server.web.handler.get.network:Scanning subnet 192.168.50.0/24 for modbus devices on ports [1502] with timeout 0.01.
srcful-gw  | INFO:server.inverters.ModbusTCP:Creating with: ('192.168.50.158', 1502, 'SOLAREDGE', 1)
srcful-gw  | INFO:server.tasks.openInverterPerpetualTask:Found inverter at 192.168.50.158, retry in 5 seconds...
srcful-gw  | INFO:server.bootstrap:Removing inverter from bootstrap: ('TCP', '192.168.50.96', 1502, 'SOLAREDGE', 1) not yet supported
srcful-gw  | INFO:server.bootstrap:Reading bootstrap file: /data/srcful/bootstrap.txt
srcful-gw  | INFO:server.inverters.ModbusTCP:Creating with: ('192.168.50.96', 1502, 'SOLAREDGE', 1)
srcful-gw  | INFO:server.bootstrap:Writing (w) inverter to bootstrap file: ('TCP', '192.168.50.158', 1502, 'SOLAREDGE', 1)