Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos
MIT License
143 stars 30 forks source link

Custom MQTT Topic and Duplicate messages #64

Closed martin072 closed 1 year ago

martin072 commented 1 year ago

Just installed your script, and works like a charm. I am not a HA user, but the MQTT feature works for everything I guess.. Would it be a lot of work to make the MQTT topic configurable?

Also I noticed the messages are also send in duplicate:

Once in this topic; homeassistand/< sensor >/

and a second time user: homeassistand/< sensor >/volvoAAOS2mqtt/

Is this normal behaviour?

Thanks for the nice work!

Dielee commented 1 year ago

Which section of the topic do you want to make configurable ? The first homeassistant ?

Can you provide some more details to the duplicated messages ? As I can't reproduce this behavior...

martin072 commented 1 year ago

Yep, if not to much to ask. Would intergrate easier in my own mqtt setup, otherwise not a big deal to leave it as is. See attached screenshot (vin number de-identiefied partly)

Untitled 2

Dielee commented 1 year ago

It would be possible to change this, but this is built as HA Addon, so I would leave it as it is.

Your duplicated messages are no duplicates. One of them is the homassistant mqtt auto discovery, the other contains the data from the auto discoverd sensor.

martin072 commented 1 year ago

Ok thanks for the quick reply!