I find it hard in Home Assistant to create a device & entities for something which is sending MQTT data. Home Assistant MQTT broker has the entity values.
A quick ‘create MQTT entity’ and ‘create MQTT device’ with specifying the topic/prefix would be amazing.
Similarly, grouping multiple entities as a ‘virtual device’ for cases like RESTful commands used.
Maybe I’m wrong.
But is your need really about discovery? Or maybe you simply want to create a device consisting of mqtt based entities?
Asking, because the latter can be achieved without discovery, simply by yaml configuration.
Discovery is useful for entities creation in automated way usually used by 3rd party apps, while they decide what topics they create and then passes this information to HA using discovery mqtt topics.
Tried suto discovery as well, but the registration process is not clear for me. (Looks very complicated) For now i managed to get topic values into helpers, but want to load them in a virtual device
tents of them. most my devices are wired through mqtt if possible.
Here is my package for Shelly PlugS.
Note that only one entity has a full device description. Others reference the device via its identifier
FPP (Falcon Pi Player) can expose multiple entities but doesn’t provide Home Assistant with a discoverable device.
I can add the MQTT topic/prefix manually and get a working entity if I manually set it up.
Other example is BirdNET-Pi, either stand alone version or the add-on.
Surely Home Assistant could recognise the topic fpp/ (or birdnet/) and ask which received states would like to be setup & grouped to a device.
I don’t know what he is insisting either. Especially why he is adding NodeRed to the equation.
Actually the fact that state of MQTT broker or NR remains unchanged when HA restarts is more than benefit. The same about vice-versa.
It can’t. Data might be provided in many formats. Also data found in MQTT must not be there only for use in HA.
Thus either an integration or device provides meta data in form of discovery, or a user creates entities manually in yaml. There could be the GUI for that but… there are so many options. Such gui would be overwhelming
When I use Virtual MQTT devices (autodiscoverd in HA) it’s discoverd once after a restart of NodeRed (and so when HA is updated):
Check the small one inside the ‘Add’-node, it means:
FYI, I use this for a long time and it never failed.
@Mark_M is this what you would like to see done by HA (without using NodeRed)?