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

Allow customization of mqtt client name #105

Open
dicer opened this issue Mar 4, 2024 · 1 comment
Open

Allow customization of mqtt client name #105

dicer opened this issue Mar 4, 2024 · 1 comment

Comments

@dicer
Copy link

dicer commented Mar 4, 2024

I now have two containers running with hms-mqtt-publisher inside and everything seems to be working ok.
I just get a lot (3-4 per second) of the following messages in my mosquitto log:
1709505662: Client hms800wt2-mqtt-publisher-ha already connected, closing old connection.

I think this is because both instances are using the same client name when connecting to mqtt. I see two possibilities:

  • Add the inverter id to the client name
  • Let the user configure the client name (or at least part of it)

Is it possible to do this?

@dicer
Copy link
Author

dicer commented Mar 11, 2024

I manually changed this in the code for the second container and can confirm that the name is the reason for the connection to mqtt dropping all the time.

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

1 participant