MatterVN / ModbusTCP2MQTT

Sungrow & SMA Solar Inverter addon for Home Assistant using mobusTCP
MIT License
69 stars 52 forks source link

Socket error on client ModbusTCP, disconnecting. #18

Closed shaunsull closed 2 years ago

shaunsull commented 2 years ago

Hi,

I am having these errors on MQTT Mosquitto broker and not getting any sensor data. Not sure if I have messed up something in the configs? Any help is appreciated. This is my first MQTT intergration.

1642389840: New connection from 172.30.33.4 on port 1883. 1642389840: New client connected from 172.30.33.4 as ModbusTCP (p2, c1, k60, u'addons'). 1642389862: Socket error on client ModbusTCP, disconnecting.

The logs from TCP2MQTT seem to show everything is okay on that end?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] done. [services.d] starting services [services.d] done. [14:29:35] INFO: Configured'core-mosquitto' mqtt broker. INFO:root:Create SungrowModbusTcpClient. Model: sungrow-sg5kd INFO:root:Modbus connected INFO:root:Configured MQTT Client INFO:root:Publish Home Assistant Discovery message

shaunsull commented 2 years ago

Of cause, the answer is to "Restart". How many times I have told others to do that with their IT.