What is Home Assistant?
45sA clear, concise introduction to a popular smart home platform that hooks viewers looking for a centralized control solution.
▶ Play Clip"Delivers exactly what the title promises: a complete installation guide with MQTT and blinds control, though some parts are padded with sponsor content."
This video is a comprehensive guide to setting up a Home Assistant server on a Raspberry Pi, covering hardware requirements, installation of HASS.IO, configuration of MQTT and the Configurator add-on, and finally adding an MQTT-enabled blinds control device. The tutorial is designed for beginners and provides step-by-step instructions for each stage.
Home Assistant is an open-source software that centralizes control of smart home devices, replacing individual apps for devices like Belkin Wemo and Philips Hue. It is similar to OpenHAB but considered by some to be better.
The video will cover: hardware requirements, installing HASS.IO on a Raspberry Pi, exploring the Home Assistant UI, installing the Configurator add-on, installing an MQTT broker, and adding an MQTT blinds control device.
Required hardware includes a Raspberry Pi (at least Pi 2, Pi 3 used), a case with a fan, heat sinks, a 32GB Class 10 micro SD card, a 5V 2.5A power adapter, an Ethernet cable, a micro SD card reader, and a computer (Mac or Windows).
Heat sinks are installed by peeling off the plastic backing and sticking them onto the main chips (the black blocks) on the Raspberry Pi board. This helps keep the Pi cool and prevents overheating.
Go to the guide page, select the appropriate Raspberry Pi model (e.g., Pi 3 32-bit), and download the HASS.IO image. Also download the Etcher program for flashing the image to the SD card.
Open Etcher, select the HASS.IO image, select the SD card drive, and click Flash. This will erase the SD card and write the HASS.IO operating system. After flashing, the computer may show an error, but that's normal.
Insert the micro SD card into the Raspberry Pi, connect the Ethernet cable to the network switch, and plug in the power adapter. Wait about 20 minutes for the system to boot and configure.
Access Home Assistant via the IP address of the Raspberry Pi followed by port 8123 (e.g., http://192.168.0.1:8123). If the hostname doesn't work, find the IP address via the router's DHCP client list.
To ensure the server always has the same IP, assign a static IP via the router's DHCP reservation. Copy the MAC address of the Raspberry Pi and create an address reservation with a chosen IP.
On first access, create a user account (e.g., username 'admin' and a password). This account is stored locally, not in the cloud. After logging in, Home Assistant is fully installed and running.
The UI shows automatically discovered devices, a map, logbook, history, and add-ons. The HASS.IO section allows installing add-ons, creating snapshots (backups), and accessing the add-on store.
In the add-on store, search for 'Configurator', click Install, then configure it by setting a username and password. This add-on provides a web-based editor for the configuration.yaml file.
In the add-on store, search for 'MQTT' and install the Mosquitto broker. Configure it by setting 'anonymous' to true (if no login is desired) and leave default ports. The broker's IP is the same as the Home Assistant server.
Add the MQTT broker configuration to the configuration.yaml file, specifying the broker's IP address. Use the Configurator to edit the file, then check the config and restart the server.
Plug in the blinds control device, connect to its Wi-Fi network, and configure it via the web portal. Set the MQTT broker IP, topic, and other settings. Save and the device will connect.
In the configuration.yaml, add a cover platform with MQTT. Define command and state topics, payloads for open/close, and other settings. Save, check config, and restart the server.
After restart, the MK blinds cover appears in the overview. Clicking the up/down arrows moves the servo, and the square button sets it to half position. The device is successfully integrated.
This guide provides a complete walkthrough for setting up a Home Assistant server, from hardware assembly to integrating MQTT devices. By following these steps, users can have a centralized smart home control system running on a Raspberry Pi.
What is Home Assistant?
Home Assistant is an open-source software that centralizes control of smart home devices, replacing individual apps.
00:31
What are the minimum hardware requirements for a Home Assistant server?
A Raspberry Pi (at least Pi 2), a case with fan, heat sinks, a 32GB Class 10 micro SD card, a 5V 2.5A power adapter, an Ethernet cable, and a micro SD card reader.
02:44
How do you flash the HASS.IO image onto the SD card?
Use the Etcher program: select the image, select the SD card drive, and click Flash.
08:37
What is the default port for accessing Home Assistant?
Port 8123.
11:38
Why is it recommended to assign a static IP address to the Home Assistant server?
To ensure the server always has the same IP address, making it easier to access and configure.
12:49
What is the purpose of the Configurator add-on?
It provides a web-based interface to edit the configuration.yaml file without needing SSH.
19:30
What is the MQTT broker used for?
It allows Home Assistant to communicate with MQTT-enabled devices.
21:49
How do you add an MQTT device to Home Assistant?
Add a platform configuration (e.g., cover) to configuration.yaml, specifying MQTT topics and payloads.
27:38
Centralized Smart Home Control
Explains the core value proposition of Home Assistant: replacing multiple device-specific apps with one unified system.
00:31Hardware Requirements
Provides a clear list of necessary components, essential for beginners planning their setup.
02:44Flashing with Etcher
Demonstrates a straightforward method for installing the operating system, a critical step.
08:37Static IP Assignment
Emphasizes the importance of a static IP for reliable access to the server.
12:49Configurator Add-on
Shows how to edit configuration files via a web UI, simplifying maintenance.
19:30MQTT Broker Installation
Highlights the role of MQTT as a communication protocol for smart home devices.
21:49[00:01] society Matt here from MK snores calm and in this video we're gonna be going over everything you need to do in order to get your home assistant server up and running in other words the complete guide so what is home assistant well
[00:31] home assistant is another open source software that can control your home and your home so instead of you having individual apps first say your Belkin Wemo your Philips you you just have one centralized server
[00:45] or app that controls everything those of you familiar with openhab this is basically another software that does the same thing as open have some might say home assistant is maybe even better so in this video we're going to be taking
[00:58] care of the hardware required for the home assistant server we're going to get home assistant running on a Raspberry Pi using house i/o we're gonna go over some of the home assistant UI we're going to install a tool called the hash
[01:11] configurator so we can modify the configuration file online from the web and we don't even need to SSH we're going to install an mqtt broker so we can connect to mqtt devices and control them and finally we're going to add an
[01:25] MQTT device and control it from home assistant in this case we're going to be way you can control your blinds from home assistant so the Raspberry Pi and my blinds control device are running custom PCBs I don't know if you can see
[01:39] that but there is a green PCB inside here and so recently I've been getting my PCBs from PCB way in fact I just recently got another set of blinds control PCBs right here from PCB way oh this was pretty fast I placed an order
[01:54] and I got it real quick so what is PCB way PCB way is how you prototype the easy way getting a PCB prototype like these is very simple and their website makes it very intuitive so those of you that I've never placed a PCB order
[02:07] before they will make it easy and they have a helpful trap so you can talk to live representatives if you don't know what something means on their website but not only did that PCB prototype but they also have SMD stencil and PCB
[02:19] assembly so they have everything you need regarding PCBs and right now holiday special if you haven't watched my videos before you already missed out on the Halloween special but don't worry they have one for Christmas so check out
[02:32] the link in the description below they have discounts also if you use the cash code on the screen now you can get five dollars off your order which means if you only want ten PCBs your order is free because for ten PCBs it's five
[02:44] dollars and the cash code is five dollars so 5 minus 5 is 0 so check out BC PUA in the link in the description below so what are you going to need to running well you're gonna need a Raspberry Pi or another one of their
[02:56] supported device but the Raspberry Pi is the easiest one to use I recommend getting at least a Raspberry Pi 2 but in this case I am using a Raspberry Pi 3 I also recommend getting a case for your Raspberry Pi to sort of protect it
[03:09] but I specifically recommend the case that I have on my RA PI now and this is a clear case with egg fan so that way the Raspberry Pi stays cooler because the Raspberry Pi doesn't come with a fan but in this case with this case it's not
[03:23] Pi goodness but it also has a nice fan to keep it nice and cool but just having a case with a fan isn't enough I also recommend getting a pair some heat sinks to put on the Raspberry Pi components so why it's cooler I'll show you how to
[03:37] install these later also for storage we're going to need a 32 gigabyte floppy disk so this is gonna go inside the Raspberry Pi I'm just kidding we're Raspberry Pi I'm just kidding we're gonna need a 32 gigabyte micro SD card
[03:50] and I recommend getting at least a class 10 micro SD card so that way you have vast storage because the higher the class the faster the storage is so this one specifically is one from SanDisk but n is 32 gigabytes home assistant
[04:03] gigabyte microSD card you're also going to need a good power adapter so this one to need a good power adapter so this one that I have here is 5 volts 2.5 amps and I believe this one is from Kanaka I don't remember exactly ah there will be
[04:17] peridot but I've been using the same power doctor on my openhab server for many many years and it's been doing so I recommend this exact one then we're Raspberry Pi to our network and I recommend using Ethernet and wired
[04:32] Ethernet instead of the built-in Wi-Fi on some of the raspberry PI's that have Wi-Fi because Ethernet is more stable I personally like to color code to the server I'm also using a green Ethernet cable so I decide to get another green
[04:46] one for this home assistant server next you're going to need a micro SD card reader so that way you can read the SD card from your computer and write to it because this is how we're gonna write the has i/o onto the micro SD card and
[04:59] lastly we're going to need a computer and this can be either a Mac computer or a Windows computer for this guide it doesn't matter which one because all of cross-platform because we're only going to be using a program called echar and
[05:12] in my case I'm gonna be using Google Chrome which is cross-platform links to the exact parts and tools I'm using will be in the description below and I recommend getting the exact ones for the most stable home assistance server one
[05:25] of the biggest things that I recommend is the clear case and the heat sinks which you can find on my website as a bundle together for a really great price which is em case motorcycle shop also links in the description follow MK smart
[05:38] because that's where I give sneak peeks on future videos and also where I show you things that only troost my home enthusiast would enjoy let's go ahead alright so the first thing we want to do is get the case on the Raspberry Pi
[05:51] Raspberry Pi but if you want a detailed video of how to put this case together check out my setting up the home automation server a hardware video I'll leave a link in the description and a card on the screen now also after this
[06:06] check out my final installation for setting up the home automation server I will also have a card on the screen at the end of this video and a link in the alright so now once the case is on we also want to install these heat sinks so
[06:21] there are two versions of these heat sinks you can get silver or black honestly the color doesn't matter it's just personal preference I like black like silver I sort of install the heat sinks I'm
[06:33] gonna put it this way it doesn't matter which way you install it me personally I'm just gonna do it this way and all you do is just remove the plastic backing and just stick it on the black block right here it's a little bit
[06:48] good there we go and then you just press down just a little bit and then that's gonna do the same thing for this one you just simply peel off the back and we want to do this little square right here and there we go push down a little bit
[07:02] and it's all done so now this Raspberry Pi is guaranteed to stay cool and important so that way it doesn't overheat and that way it can keep running your home automation server your house IO so you can always control
[07:16] everything you want now we're going to get the hash io operating system onto the micro SD card so what you want to do is go to the guide for this video which bring you to this exact page where I have all the commands and steps that
[07:31] assistant server up and running obviously this video will be replaced with the video you're watching now but this is just a temporary placeholder all right so we want to go to the software tab and then we want to scroll down to
[07:44] where it says follow instructions from official website then we click on it and so these are the instructions we're gonna be following to get has IO in salt so the first step is you need to choose what model Raspberry Pi you are using so
[07:57] I am using the model 3 and so I'm going to use the 32-bit so I'm going to click on that one and it'll start downloading right here alright next we're going to need the program called echar so just click on this link right here that'll
[08:10] bring us to nature and it'll automatically detect what operating what if you click the drop-down you can choose which operating system you're for whatever operating system you have and then once it's downloaded open up
[08:24] all right now we just have to drag it to our application folder if you're on Windows I already have the program salt so I'm just gonna click stop there's no Windows you'll have a different setup process ok so now I'm going to go to my
[08:37] launch pad and open up at you if you're on Windows just go to your search menu the program for you all right now we're going to select image we're going to go to our downloads folder and click on the haseo image click
[08:51] open now we need to plug in our microSD card so take your SD card reader and then take your microSD card and plug it in and then after that plug it into your all right the SD card is inserted I do want to note that it will erase
[09:06] everything off of your SD card to make sure anything you have important off there is off there alright so next we're gonna click select Drive and then you can it shows you all the drives attached so mine is a 32 gigabyte you lose a
[09:19] little bit due to formatting so it is the thirty point nine one gigabyte clean and click continue and then finally click flash like I mentioned before this will erase everything off your SD card click flash it will ask for your admin
[09:32] password for your computer and it is flashing alright at your finished flashing your computer will say this disco was not readable that's fine that's because the computer can't understand the format so just click
[09:45] eject and so etcher says flash complete so you can close out and then now you can disconnect the micro SD card from your computer and now we're gonna go ahead and plug everything in and get the raspberry pie all good to go in terms of
[10:00] hardware alright so the first thing we're gonna do is take out the micro SD we're gonna do is take out the micro SD card and put it into the Raspberry Pi alright the SD card is in right here so we no longer need the reader ok next
[10:13] we're going to take the ethernet cable and connect one end of the ethernet cable into the ethernet port of the Raspberry Pi and then take the power Raspberry Pi and then take the power adapter and plug in one and into the
[10:26] Raspberry Pi so we got two things that we need to plug into our network well power so let's go do that now alright so here is my network setup I apologize for all of the Ethernet cables we were currently running some wires and
[10:40] so we had to move them all down but the main network setup is still untouched so we just need to tuck these back in over there but anyway so let's go ahead and plug in the server alright so now that we got our server right here we're going
[10:53] to take the ethernet cable I'm going to plug it into my Ethernet switch right there plugged in and then I'm going to take the power adapter and plug it in Raspberry Pi turns on I'm just gonna tuck it in right here I apologize if
[11:10] it's a little bit loud but we are down here in the server room so like I here and my home assistant server right the same time on your network all right now let's go ahead and wait 20 minutes
[11:23] for this thing to boot up and get home assistant all set up for us to configure all right it's been about 20 minutes so I think my server is fully set up so now we want to go back to my web site and then go back to the haseo installation
[11:38] site so there's two ways of accessing your home assistant server you can either type in the IP address colon eight one two three or hostile ocol colon eight one two three now for me this doesn't work but for you it may
[11:53] work see it just keeps on trying to load and waiting it may be because I have to disconnected the first one but anyway so there's two ways you can either do this of this video the IP address always works so to find the IP address you want
[12:08] to log on to your router and see all the connected devices so to see what your routers IP address is you go to system preferences and then network if you're on Windows you go to command prompt and type in ipconfig and you want to look
[12:22] for your router IP address and then you want to type it in don't ask for a username and password if you've never accessed this before it would be on the back of your router but I have so I changed it and then you want to go to
[12:34] DHCP and then Client List every router is different I'm gonna every router is different I'm gonna extend this and so we are looking for house i/o all right there's one of my house i/o servers and there is the other
[12:49] right here alright so since we're already in here what you would ideally want to do is give your home assistant server a static IP address what a static IP address is is an IP address that is always attached to that device so in
[13:03] this case this Raspberry Pi that this has i/o server is using I already gave its MAC address the IP address of 192.168.0.0 server so you can do the
[13:17] same DHCP and DHCP client lists then look through the list and find open havean pi copy its MAC address and head over to address reservation click add new and in the MAC address field paste the PI's MAC
[13:32] address there's one more field to fill out and that is the IP address out and that is the IP address I put 192.168.0 for because that is the next available static IP address I have click Save and in the pop-up box click
[13:45] OK there will be a little warning saying that it needs to reboot so click on the thing that says click here and press the reboot button when the box pops up click let the router restart and when it finishes unplug the Raspberry Pi wait 10
[13:59] seconds and then plug it back in wait one minute for the Raspberry Pi to boot back up so now that we have the IP address you just want to copy it go to your web browser open a new page through colon 8 1 2 3 and click enter and it
[14:14] configuration so the first thing you want to do is create a user name account so I'm going to call this account admin and the user name is gonna be admin and then I'm going to give it a password and then you want to click create account
[14:28] alright now it's gonna ask you to log in with those credentials and the goal of local so those credentials that you just entered are stored locally that you don't go to a cloud so I'm going to log in with the user we just created and
[14:41] there we go home assistant is complete and you can save this login if you want for this device so I'm gonna click save login for the sake of it and then that's it home assistant is complete its installed and running on your server
[14:54] alright but now let's go through the home assistant interface and let me tell up here you have the things that automatically discovered and then here's discovered so you already found my Belkin light switches and then they have
[15:08] some welcome information if you click on the 3 lines in the top left it brings up the 3 lines in the top left it brings up a menu here is a map so if you have a layout plan of your house it shows you where all the devices are here you have
[15:22] where all the devices are here you have a logbook which shows all the logs of the server then you have history which shows you the statuses of the device overtime so say for example it'll show you when at what points in the day
[15:36] you turn on the light switch at what points you turn it off see for example in the Belkin light switches it's says that it's been off for this long and same thing with the other one and so it just gives you some nice statistics
[15:49] which is really cool because this is all out of the box we didn't even touch the server yet and or configure anything we literally just installed it and created a user account and then next we have has i/o so this is where we can add add-ons
[16:05] and different apps that home assistant has for example in this video we're gonna add what are we gonna add we're gonna add the ask configurator and we're gonna add the ask configurator and we're gonna add the MQTT broker but so the
[16:17] show you all the add-ons you have installed then you have snapshots so this is where you can create backups of your server which is pretty cool cuz this is all out of the box that's what blows my mind and openhab you would have
[16:31] to do a bunch of command line tools plug-in a flash drive and a bunch of stuff and here it's all built in and it has a nice user interface then here you have the add-on store right now out of the box it has the official home
[16:44] assistant add-ons so these are all official add-ons by home assistant and if you want you can add another repository from different people and unofficial add-ons and then we have system so this shows you some system
[16:58] logs and from here you can reboot shutdown import from USB you can change the hostname and then the next one is configuration so this is where you can video in the future on the home assistant cloud you have integrations so
[17:14] this shows you stuff that you can figure this is all built in out-of-the-box and these are things that it automatically discovered and here you would show up things that are automatically or show things that you have configured and then
[17:28] users for different people in the house and so that you can show if their home are away and in the future home assistant plans that different users will be able to have different sitemaps or different things that they can see
[17:42] and give them restriction next we have the general so this is really cool I like this what this is is a configuration validation so when you modify the configuration yamo file which is the main file of where you add the
[17:57] devices if you click check config it'll make sure that the syntax is correct and it won't crash your entire server so every time you modify the configuration you'll remember to go here and click check
[18:09] config and then here you can reload all the different parts of home assistance so you can reload the core groups automations and scripts we'll be covering those in future videos and then from here you can restart the entire
[18:23] Raspberry Pi or you can turn off the Raspberry Pi as a whole and then here you have some developer tools we won't go into detail but here I'll just click
[18:35] go into detail but here I'll just click through them and then finally you have your home assistant what it is and the versions alright so now that you have
[18:50] your home assistant server up and ready you're gonna need some devices to connect to it and over @mk smart comm shop I have a bunch of different products that are compatible with home assistant once you finish this video
[19:03] because all the devices on my shop are mqtt enabled so that means they connect mqtt enabled so that means they connect through MQTT so on my website I have LED strips blinds controls sprinkler systems door sensors fire sensors and we're
[19:17] gonna be adding more and more as the months go on and if you sign up for the of your order in this video we're also going to covering how to add the blinds control device at the end so head on over to MK smart calm slash shop and
[19:30] briefly mentioned about the configuration DML file so let's go ahead and install a house configurator which is a web user interface way to edit that configuration not yamo file so you want to go to ha sigh oh and then go to the
[19:45] add-on store and we want to look for hassed configurator there it is the configurator and then just click install if you want more information about it one thing that's really cool about homeless
[19:57] you just click install and install us the add-on and configures it for you to change alright it looks like the configurator is all installed so let's start on boot yes we want to do that next is auto
[20:14] update so this is whether the add-on automatically updates itself when there is a new version I'm going to enable that just because I don't want to keep on clicking the Update button yes it is easy and home assistant but why not have
[20:27] you have the uninstall so if you want to remove this you just click this and then click the start button and it will start but so before we click the start button we need to give the configurator a password so what this means is when you
[20:41] go to the configurator page it'll ask you for a username and password and so we need to define those so I'm going to keep the username as admin and then I'm going to make the password also admin and so you want to put quotation marks
[20:55] use inside the quotation mark once you've done that click Save once you click the Save button then click start and it'll start the configurator and it is started because you can see the green circle at the top and from here you can
[21:09] restart it and you can stop it but we want to click open web UI because that'll take us to the configurator and so now we're gonna use the username and password that we defined in that file I don't want to save the password alright
[21:21] so this is the hash configurator this is where we can modify all of the files that are related to house IO or in-home assistant and to see the files you just click on this folder in the top left and this brings all the files but this is
[21:36] the most important file this is the configuration dot yellow file and this is where we're going to add all of our MQTT devices which speaking up we need to install the MQTT broker to install the MQTT broker we need to go back to
[21:49] our home assistant and we want to go back to haas i/o or hosta io go back to the add-on store and search for mqtt there we go mosquito broker so click on it and click install alright it installed and just like the past
[22:06] configurator I want it to start on boot and I actually want it to install button in the start button and here is our config for this one I'm going to go to the broker page just so I can show you a couple things so the
[22:22] first thing is logins as you can see in the one that we have now there are no logins if you want a username and password to connect to the mqtt server password to connect to the mqtt server you want to insert this in between these
[22:35] brackets right here and then you can just change the username and password but for me personally I don't really I don't see any benefit to securing mqtt of my house so I'm going to change this anonymous to
[22:51] true so that way I say that I don't require a login to access the MQTT server and then click Save and then this other stuff I don't really worry about need to know is the logins and the anonymous so then click Save once that's
[23:07] all saved this is leave the default ports as they are and then just click start all right so the mosquito broker is installed and the IP address for the mosquito broker is the same one as your home assistant server has i/o server in
[23:22] home assistant server has i/o server in my case the MQTT server is 192.168.0.1 I'm setting up my devices I want to make sure that I include this IP address now that the mosquito broker is installed we need to add it to our configuration file
[23:36] so that way it knows that any MQTT device that we add we want it to use this mqtt broker so we want to go back to my website and copy this piece of code right here then we want to go to our configuration demo file and then I
[23:51] like to put it underneath discovery click enter two times and then command V click enter two times and then command V or control V or paste it in and then you want to change the IP address of server to the IP address of your home assistant
[24:08] to the IP address of your home assistant server so mine is 192.168.0.1 you want to click the Save button up here and actually this is a perfect time to show
[24:20] you how to check the configuration demo file go back to your home assistant main page and you want to go to configuration you want to go to general and click check config and it tells us that our file is
[24:34] every time that you change the configuration not a mo file you go over to server management and you click restart it'll restart your home assistant server and make update the configuration now mo file that the
[24:48] server is using if your are smart woman thoose iasts like me then check out smart house society comm smart society comm is a website that I created that has clothing that true smart home enthusiasts would appreciate because it
[25:01] shows that you like smart homes and you're part of the society that loves smart homes to which if you're installing home assistant that means you are part of these frat house society and I have versions of the clothing that
[25:14] say elite member on the back to show that you are an elite member of the smart society there are different things of clothing you can get on the store you can get hoodies t-shirts polos hats snap backs all on smart how society calm and
[25:28] if use the promo code elite you can get 15% off of your order so check out smart society calm because if you're a smartest that's where you belong now that we have home assistant fully configured with mqtt in-house
[25:41] control so that way we can control our blinds from home assistant so the first thing I'm going to do is just plug it into the wall and make sure the jumper pin is overrun then I'm going to grab my phone go to Wi-Fi and click on MK blinds
[25:56] configure Wi-Fi if you guys want a more detailed way on how to set up the blinds control device then check out this video right here in this card where it'll take show you how to connect to openhab where it's the same thing except for the
[26:12] video and the IP address but in this video I'm going to scroll through and show you the settings that I've put into this blinds control so the first thing is I selected my Wi-Fi network gave its password then I told it the host name is
[26:25] m'kay - blinds control 1 because it's the first blinds control device then for the first blinds control device then for mqtt i said that the IP address is 192.168.0.0 of home assistant then I gave it this topic
[26:40] right here m'kay - smart house slash utilities /mk - blinds control one and then false because I didn't declare authentication if you have authentication and you put in a username and password in the MQTT mosquito addon
[26:56] then you would change this false to true and type in the username and password that you typed into the mosquito configuration next is web updater this configuration next is web updater this is how we will access the update page as
[27:10] well as the portal page for the device and then I don't want these blinds to put that to false but if you want them to move slowly and quiet change the false to true all right now I'm going to click Save and if everything connects
[27:23] correctly then this page should disappear and there we go it disappeared so it connected successfully now let's add it in home assistant alright to add it to home assistant we simply go to my website copy this piece of code right
[27:38] here then we want to go to home assistant haseo we want to go to the configurator open the web UI and then we want to be into the go to the folder and then go to the configuration Yamla file and then scroll
[27:52] all the way down to the bottom and paste in the code that we copied from my website so let me go over what this is this is a cover item type it uses the platform mqtt we're going to give it the name m'kay blinds then for the command
[28:07] topic the command topic is what sends to the device and then the state topic is what home assistant receives from the device because the device is two-way communication so when home assistant sends a command if the device executed
[28:20] the command back to home assistant letting it know that it was successful so then we have retained true because I want it to retain the state even when it does a power cycle and then payload open so that means it'll send 0 when we click
[28:35] open and home assistant and then for close it'll send a hundred so to the mqtt topic to open the device it'll send a 0 to this topic and want when we want it to close it'll send a 0 to this topic and then also when a home assistant
[28:51] sends the commands it'll send the number 56 because that's again it sends all of these to the command topic and then for the states if if it receives a zero from this state command then it'll show open and home
[29:05] assistant and when it receives a hundred from this state topic then it'll show closed all right now we're gonna click the Save button then we're gonna go over to our home assistant main page go to configuration go to general check the
[29:18] config configuration is a valid and then just restart the home assistant server all right now that the server is restarted I'm gonna go to overview and then we can see the cover item for the MK blinds and so if I click the up arrow
[29:33] MK blinds and so if I click the up arrow as you can see the blinds control a servo move and if I click the down arrow it also moved and then obviously if we it also moved and then obviously if we click the square it'll go to the half
[29:49] position fantastic so now the blinds control device is successfully connected information on the blinds control device or if you want to see it actually in action in a blinds then check out my channel where I have videos on it I'll
[30:02] leave a link in the description below so what does this mean for my channel well it means that in future videos I will be showing how to connect devices to both openhab and home assistant and I'll be showing add-ons and bindings for both
[30:16] openhab and home assistant and then eventually one day I will make a video comparing home assistant openhab so you can decide which one is better for you alright that concludes this complete guide to installing home assistant in
[30:28] all the parts and devices used in the video as well as a link to MK smart slack Comstock shop where I have a wide range of smart home kits that you can video helpful click that like button and
[30:41] if you are smart I'm enthusiastic you are then you belong on this channel so hit that subscribe button also a reason to hit that subscribe button is I'll be doing more videos on home assistant and openhab if you have any questions leave
[30:54] in the comment section below or join the community over at MK smart sicom slash forum good bye [Music]
⚡ Saved you 0h 31m reading this? Transcribe any YouTube video for free — no signup needed.