Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

topic_subscription not working as expected #235

Open
andrey-yantsen opened this issue Aug 25, 2021 · 2 comments
Open

topic_subscription not working as expected #235

andrey-yantsen opened this issue Aug 25, 2021 · 2 comments

Comments

@andrey-yantsen
Copy link
Contributor

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.

@stefanbosch
Copy link

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

@Goodwillson
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants