in my case and then set the password and hit submit on the next page you'll have some options for configuring the birth and last will messages these are essentially mqtt topics to configure for when the broker starts up and also shuts down you can just leave these as their defaults unless you need to configure them for something click on submit and then finish to save we can then give our broker a little test just to make sure everything is working back on the configure page you'll see these options for listen to a topic and publish this is the first sort of glimpse at that publish and subscribe model i mentioned earlier this page is very useful for debugging mqtt messages so make sure to remember it's there for the future but for now let's test the broker we can listen for any topic in the bottom box and then in the top box we can publish a message to that topic and you'll see it instantly appears in the bottom box i know this might seem like a very cheap trick because it's the same server that's publishing and also listening but you get the idea and this is how it works exactly the same for any of the sensors that you will configure you can also listen to wild card topics using the hash symbol if i change my topic like this and then i can listen to any events after my wild card symbol this is a great place to play around and test out topics so that you can get your head around that whole concept let's very quickly take a look at a real world example and how you can configure mqtt on a client device i'm using a shelley device for this purpose and for this test but you should be able to take this exact same principles and apply them to your mqtt device so over in my shelly settings in the advanced settings drop-down i have the option to enable and configure an mqtt server in the username box i enter the username of the user we created earlier in home assistant so mqtt dash user and set my password in the server box you'll want to type in the ip address or host name of your home assistant server followed by port NUMBER_TOKEN you can also configure other options like retain and qos if you need them and hit the save button and now if we head back to home assistant and listen to all topics using the wildcard option i mentioned earlier we can trigger the shelley and watch the mqtt messages appear in home assistant and we can view the topic and the message this information here is all the information you need to go and create an mqtt switch or sensor in home assistant another excellent tool for discovering mqtt topics and also discovering all the information you need in order to use it in home assistant is called mqtt explorer and this can help you expand mqtt topics to find the exact information you need so yeah i definitely recommend mqtt explorer if you need help with mqtt topics and that is pretty much all you need to know for getting started with mqtt and an mqtt broker on home assistant so we went over exactly what mqtt is how to install the mosquito broker add-on on home assistant and how to configure a client for mqtt and also how to listen for topics but that is why all the time we have for this video hope you guys enjoyed it let me know in
NO_SEGMENT_TOKEN