-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensor not appearing in HA #8
Comments
Ah, I just found that HA has an (advanced) option for MQTT, where only certain prefixes are automatically discovered. By default, this is "homeassistant" :) Here's an example of a topic from another project:
So if it's just that: could you make the prefix configurable? |
It is supposed to support automatic discovery. There are HA related settings to having auto discovery on. Docs at: https://www.home-assistant.io/integrations/mqtt/#mqtt-discovery I'm afraid you'll have to do a bit more digging your side. |
Sure. |
Ok, for anyone finding this thread, here's a manual working config for HA (configuration.yaml)
Nice, thank you. So...as soon as my meeting starts (DND on), a light outside my home office door will turn red :) |
I configured Mosquitto with a dedicated MQTT user, which I added to the kiotrc. Then I could add a new MQTT device and kiot appeared as "Unkown device". |
It also appears for me now with the latest changes. The structure for HA autodiscovery isn't 100% right yet. The component name (aka device name in HA) is "unknown". I can have a look at that, might be the path of the topic. I'd say that the host name would be a good component name. What do you think? |
Please do. I just changed my hostname and also go the unknown device name too. I must have had some stray data from before in a refactor The way it's meant to work is the entity info is sent once in: I think you maybe just need to move ' config["device"] = QVariantMap({{"identifiers", "linux_ha_bridge_" + hostname() }});' into the if statement above. |
I just pushed something that fixes device information being submitted |
Hi
Thanks for this work. I'm testing some things out and I see the data in mqtt. But unfortunatly, I don't get any entities automatically discovered in HA. Is it supposed to support automatic discovery? Or is it meant to added manually? (even though I wouldn't know how :) )
In MQTT I see
and further, if I toggle the DND, I see the value flip flopping
Is this more of an HA issue? Do I need to activate something in HA for discovery?
And again, thank you for your work.
The text was updated successfully, but these errors were encountered: