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)
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.
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:
Is it possible to do this?