Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recurrent disconnects from MQTT server #330

Open
jdiviney opened this issue Jan 12, 2025 · 3 comments
Open

Recurrent disconnects from MQTT server #330

jdiviney opened this issue Jan 12, 2025 · 3 comments

Comments

@jdiviney
Copy link

GivTCP spams the MQTT broker every second or so with a connect and disconnect. This is continuous and fills the whole log.
Running latest versions on home assistant as add-on

Log:
2025-01-12 10:11:27: New client connected from 172.30.32.1:33321 as GivEnergy_GivTCP_1 (p2, c1, k60, u'addons').
2025-01-12 10:11:27: Client GivEnergy_GivTCP_1 disconnected.
2025-01-12 10:11:48: New connection from 172.30.32.1:57119 on port 1883.
2025-01-12 10:11:49: Client closed its connection.
2025-01-12 10:11:49: New connection from 172.30.32.1:51001 on port 1883.
2025-01-12 10:11:49: New client connected from 172.30.32.1:51001 as GivEnergy_GivTCP_1 (p2, c1, k60, u'addons').
2025-01-12 10:11:49: Client GivEnergy_GivTCP_1 disconnected.
2025-01-12 10:12:11: New connection from 172.30.32.1:43523 on port 1883.
2025-01-12 10:12:12: Client closed its connection.
2025-01-12 10:12:12: New connection from 172.30.32.1:45227 on port 1883.
2025-01-12 10:12:12: New client connected from 172.30.32.1:45227 as GivEnergy_GivTCP_1 (p2, c1, k60, u'addons').
2025-01-12 10:12:12: Client GivEnergy_GivTCP_1 disconnected.
2025-01-12 10:12:33: New connection from 172.30.32.1:44699 on port 1883.
2025-01-12 10:12:34: Client closed its connection.
2025-01-12 10:12:34: New connection from 172.30.32.1:59827 on port 1883.
2025-01-12 10:12:34: New client connected from 172.30.32.1:59827 as GivEnergy_GivTCP_1 (p2, c1, k60, u'addons').

@britkat1980
Copy link
Owner

I’m guessing you run v2? V3 uses a persistent connection for MQTT (and modbus). Which should improve this.
Can you confirm if you see this problem on v3?

@gcoan
Copy link

gcoan commented Jan 13, 2025

I am running givtcp v3 and am still seeing repeated disconnects and connects in mosquitto broker, albeit not as bad as v2:

image

@hwb45
Copy link

hwb45 commented Jan 13, 2025

Exactly the same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants