Hardcoded Home Assistant MQTT Discovery Prefix #539
Unanswered
Apocrathia
asked this question in
Ideas
Replies: 2 comments 2 replies
-
Your idea is pretty much right - I think I would add it as a config option and then as a constructor param for (Feel free to open this as a feature request issue - that makes it easier to track for me, even if you don't succeed with your PR.) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It appears that the topic 'homeassistant' is hardcoded into the entity constructor for the Home Assistant integration. This means that if you're using a different discoveryPrefix, none of the entities created and tracked by room-assistant will get populated into Home Assistant without manually configuring each entity as an MQTT room presence sensor.
I'm trying to dig through the code to see if this is something I could write up a PR to create a configuration value for, but I'm not very familiar with TypeScript, so it'd probably be a mess. Looking at where room-assistant is pulling the configuration for MQTT, I would think it shouldn't be too difficult to add a property for
discoveryPrefix
with a default value ofhomeassistant
, but I'm also not sure if that would be accessible from the entity class when entities are getting broadcast to the MQTT broker.Does this seem possible, or at least on the right track for drafting up a PR?
Beta Was this translation helpful? Give feedback.
All reactions