Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow configuration of mqtt client name to allow for multiple instances

kevinanderson1 opened this issue · comments

Is your feature request related to a problem? Please describe.

My family has two Volvo C40's that I would like to integrate in with Home Assistant. Ideally I would be able to run two instances (containers) of volvo2mqtt so that both C40's can be integrated in to Home Assistant. This currently fails because the volvo2mqtt instance hardcodes the mqtt client name in src/mqtt.py to be volvoAAOS2mqtt and mqtt client names must be unique.

Describe the solution you'd like

Accept a configuration parameter for the mqtt client name.

Describe alternatives you've considered

None.

Additional context

I've manually built a second container with the name hardcoded to something else and have been running it without any issues.

Are your C40s running with different Volvo accounts?

Okay. I will implement an auto generating unique ID for each instance. So there will be no user input required.

Yes, thanks a lot, but the configuration is already a mess. I try to avoid any addition...

One more question: If you are using different volvo accounts, your login username differs, right ?

You are not using the HA Addon, right ?

v1.8.6 is building :)

Build is done. Feel free to test later today!

I can confirm that the testing was successful! Thank you for the quick response and for your work!