bt-mqtt-gateway icon indicating copy to clipboard operation
bt-mqtt-gateway copied to clipboard

topic_subscription not working as expected

Open andrey-yantsen opened this issue 3 years ago • 2 comments

I have 3 instances on 3 different rpi0w, in different rooms. All of them are used to control my AM43 blinds and to prevent conflicts when processing an MQTT command, they have topic_prefix set depending on the rpi0w's hostname.

In the config I have the following bit:

manager:
  topic_subscription:
    update_all:
      topic: homeassistant/status
      payload: online

The idea is to have up-to-date data sent to MQTT every time HASS restarts. Unfortunately, the defined topic gets concatenated with topic_prefix. It would be good to have an extra option in the topic_subscription in order to prevent such concatenation.

andrey-yantsen avatar Aug 25 '21 09:08 andrey-yantsen

Interesting, this solved my problem. Thank you @andrey-yantsen

stefanbosch avatar Sep 12 '21 19:09 stefanbosch

By home assistant manual https://www.home-assistant.io/integrations/mqtt/#birth-and-last-will-messages - By default, Home Assistant sends online and offline to homeassistant/status. Adding prefix to this topic is a bug in my opinion, because other mqtt gateways then wont receive birth notifications, if we customize birth message in home assistant to match bluetooth gateway config.

Goodwillson avatar Nov 03 '22 07:11 Goodwillson