DennisOSRM / hms-mqtt-publisher

HMS-XXXXW-2T MQTT publisher and Home Assistant addon
BSD 2-Clause "Simplified" License
111 stars 16 forks source link

Inverter marked as offline #109

Closed JonathanN1203 closed 6 months ago

JonathanN1203 commented 6 months ago

Hi,

I setup the hms_mqtt_publish as docker on a debian vm. I configuriered the ip of the inverter and my mqtt broker.

I start the container with this command docker run --rm -it -v ./config.toml:/config.toml dennisosrm/hms-mqtt-publisher

In the log it shows that the inverter is offline, but in a tcpdump I can see connections between the vm and the inverter. What can be the reason for this?

tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
13:52:14.150276 IP 10.12.30.7.58834 > 10.12.11.100.10081: Flags [S], seq 1823358672, win 64240, options [mss 1460,sackOK,TS val 594905342 ecr 0,nop,wscale 7], length 0
13:52:14.154111 IP 10.12.11.100.10081 > 10.12.30.7.58834: Flags [S.], seq 71257, ack 1823358673, win 8760, options [mss 1460,nop,nop,sackOK], length 0
13:52:14.154167 IP 10.12.30.7.58834 > 10.12.11.100.10081: Flags [.], ack 1, win 64240, length 0
13:52:14.154195 IP 10.12.30.7.58834 > 10.12.11.100.10081: Flags [P.], seq 1:11, ack 1, win 64240, length 10
13:52:14.358784 IP 10.12.30.7.58834 > 10.12.11.100.10081: Flags [P.], seq 1:11, ack 1, win 64240, length 10
13:52:14.362424 IP 10.12.11.100.10081 > 10.12.30.7.58834: Flags [.], ack 11, win 8750, length 0
13:52:19.310971 IP 10.12.30.7.58834 > 10.12.11.100.10081: Flags [F.], seq 11, ack 1, win 64240, length 0
13:52:19.315352 IP 10.12.11.100.10081 > 10.12.30.7.58834: Flags [.], ack 12, win 8749, length 0
13:52:19.315978 IP 10.12.11.100.10081 > 10.12.30.7.58834: Flags [F.], seq 1, ack 12, win 8749, length 0
13:52:19.316073 IP 10.12.30.7.58834 > 10.12.11.100.10081: Flags [.], ack 2, win 64240, length 0
13:52:49.811249 IP 10.12.30.7.49678 > 10.12.11.100.10081: Flags [S], seq 1505675049, win 64240, options [mss 1460,sackOK,TS val 594941003 ecr 0,nop,wscale 7], length 0
13:52:49.815124 IP 10.12.11.100.10081 > 10.12.30.7.49678: Flags [S.], seq 77013, ack 1505675050, win 8760, options [mss 1460,nop,nop,sackOK], length 0

I have a hms-800w-2t.

config.toml:

inverter_host = "10.12.11.100" update_interval = 30500

[home_assistant] host = "10.12.30.2" username = "USER" password = "PW" port = 1883