Hi There,
I am using Solaredge modbus and after some hickups, I now manage to connect to my Solaredge inverter locally via Modbus.
In order to enable multiple connection to my Inverter, I want to set up ha-modbusproxy.
Working configuration for Solaredge Modbus (w/o proxy):
Inverter IP: 192.168.1.100
TCP-Port: 1502
Modbus address: 2 #(!) - here I had issues: 1 is not working.'
Unsuccessful configuration for Modbusproxy:
Upstream host: 192.168.1.100
Upstream port: 1502
Listen port: 502 #(as no change is recommended by the developers)
Network Port: 502/tcp
Unsuccessful configuration for Solaredge Modbus (for proxy utilization):
Inverter IP: 192.168.1.50 #(HASS localhost)
TCP-Port: 502
Modbus address: 2 #assumingly the ID will not change after the proxy?!
Modbus proxy log:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Preparing to run modbus-proxy
Upstream: 192.168.1.100:1502
Listen: 502
Timeout: 10
Connection Time: 0.1
Loglevel: INFO
Generated Config
devices:
- modbus:
url: 192.168.1.100:1502 # 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)
logging:
version: 1
formatters:
standard:
format: "%(asctime)s %(levelname)8s %(name)s: %(message)s"
handlers:
console:
class: logging.StreamHandler
formatter: standard
root:
handlers: ['console']
level: INFO
2024-03-16 22:29:58,724 INFO modbus-proxy: Starting...
2024-03-16 22:29:58,740 INFO modbus-proxy.ModBus(192.168.1.100:1502): Ready to accept requests on 0:502
Could anybody help me out here, please? Many thanks in advance!