Akulatraxas / ha-modbusproxy

Hassio Addon packaging modus-proxy
Apache License 2.0
31 stars 3 forks source link

write_read error ConnectionRefusedError #9

Closed xrado closed 1 year ago

xrado commented 1 year ago
Preparing to run modbus-proxy
Upstream: 192.168.0.212:502
Listen: 502
Generated Config
devices:
  - modbus:
      url: 192.168.0.212:502 # device url (mandatory)
      timeout: 10 # communication timeout (s) (optional, default: 10)
      connection_time: 0.1 # delay after connection (s) (optional, default: 0)
    listen:
      bind: 0:502 # listening address (mandatory)
2023-01-12 15:57:24,841     INFO modbus-proxy: Starting...
2023-01-12 15:57:24,859     INFO modbus-proxy.ModBus(192.168.0.212:502): Ready to accept requests on 0:502
2023-01-12 15:58:41,971     INFO modbus-proxy.Client(192.168.0.10:36731): new client connection
2023-01-12 15:59:11,972     INFO modbus-proxy.ModBus(192.168.0.212:502): connecting to modbus...
2023-01-12 15:59:11,975    ERROR modbus-proxy.ModBus(192.168.0.212:502): write_read error [1/2]: ConnectionRefusedError(111, "Connect call failed ('192.168.0.212', 502)")
2023-01-12 15:59:11,976     INFO modbus-proxy.ModBus(192.168.0.212:502): connecting to modbus...
2023-01-12 15:59:11,978    ERROR modbus-proxy.ModBus(192.168.0.212:502): write_read error [2/2]: ConnectionRefusedError(111, "Connect call failed ('192.168.0.212', 502)")
2023-01-12 15:59:11,979     INFO modbus-proxy.Client(192.168.0.10:36731): closing connection...
2023-01-12 15:59:11,980     INFO modbus-proxy.Client(192.168.0.10:36731): connection closed

hi, any Idea why is this happening? I have the inverter on 192.168.0.212 and HA on 192.168.0.10. After adding solaredge modbus integration and setting the inverter address to 192.168.0.10 (proxy), these errors start to happen.

xrado commented 1 year ago

ahh my bad, the inverter listen on the port 1502