Akulatraxas / ha-modbusproxy

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

Missing configuration "connection_time" #8

Closed Dark-Tower-Coder closed 1 year ago

Dark-Tower-Coder commented 1 year ago

Hey I'm currently using a modbus-proxy on another system in a docker container. Unfortunately, this connection is not 100% stable, which is why I want to test your implementation.

Unfortunately, I don't have the option to set "connection_time". The default seems to be "connection_time: 0.1". But I need "connection_time: 2". Background: I connect the modbus-proxy to my SUN2000 and it needs the mentioned option.

Can you tell me where I can adjust it manually?

If possible, please also provide this setting via the GUI.

Many Thanks :-) Greeting Tower

scrichab commented 1 year ago

i'm also looking for that setup i tied to setup in yaml but won't work

upstreamhost: 10.10.1.240 upstreamport: 502 listenport: 502 timeout: 12 connection_time: 3

but still get generated setup with connection_time: 0.1

thomasnas commented 1 year ago

Hi, Thanks for your effort in making this integration. I have the Huawei Sun2000 inverter as well here at home and would like this integration to provide modbus connections to both my HA system as well as another system. For the moment I can't get the home-assistant to connect to the modbus-proxy. Does it need the connection_time setting ? Would you be able to tell me if you were able to work on it ? Thanks in advance

Akulatraxas commented 1 year ago

@thomasnas i think you have another issue, please open another ticket in here to keep things seperate :)

@scrichab i am currently testing a new version including timeout and connection_time config as well as some changed logging, will be hit the repo soon

Dark-Tower-Coder commented 1 year ago

With this new option, I was able to easily connect and use my Huawei SUN2000.

Thank you for the integration :-)