Automate new MQTT devices to custom dashboard

Hello,

It has been awhile since I have gotten into customizing my HA (running in docker container) interface.

Background: I have NetAlertX running on my home network and have set up its MQTT publisher. I run mosquitto mqtt (in a docker container) and HA does hear the NetAlertX MQTT published messages.

I would prefer to make an HA Dashboard “Home Network” that shows all of the devices from NetAlertX’s MQTT messages. Is there a way to automate the auto-discovery of these devices to be added to my custom “Home Network” dashboard (I already have MQTT auto-discovery working to the default dashboard)?

If someone could point me in the right direction to accomplish this, I would be greatly appreciative! I have tried googling, but am not searching for the right terms or maybe this isn’t possible.

As of this moment, MQTT is only used for my NetAlertX messages (since Tasmota has it’s own integration).

Thanks!

Hello Tom,

Tasmota integration still uses the MQTT Broker, just so you know.

To pull in entities they need to be send to specific topics for the HA Auto Discovery to work or you need to use the MQTT integration to manually set-up the entities.

Sorry, I wasn’t very clear in my original post, I have auto-discovery set up for HA and the devices do populate on the default dashboard. I am looking for a solution to populate them to a custom dashboard automatically.

With the nature of NetAlertX scanning my network for hosts, I’d prefer to automate this rather than manually add new devices each time a new host joins the network.

The only dashboard that anything automatically shows up in is the default dashboard that shows everything. All the rest are manual adds.
You can do some template magic with custom dashboards like mushroom cards and the like, look in GitHub directly or in the HACS loader integration indirectly to find those.

If you are wanting to suggest a change to the dashboard behavior, you could do a Feature Request here:
home-assistant/frontend Other Feature Requests · Discussions · GitHub.

Thanks for pointing me to mushroom cards!
I have not made it my solution to this issue yet, but I am using them.