How to Install Zigbee2MQTT in Home Assistant - TUTORIAL

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi there so you bought yourself a zigbee stick to control your zigbee devices in home assistant using zigbee2mqtt in this video i'm going to show you how to set this up [Applause] [Music] with zigbee to mqtt you can connect zigbee devices to home assistant using an add-on zigbee to mqtt supports a lot of devices as you can see here it supports a lot of different coordinators and also a lot of different devices let me show you how you can set up zigbee to mqtt for that we are going to configuration add-ons backups and supervisors and then we go to the add-on store the first thing that we have to install is mosquito which is the mqtt broker that makes sure that packages are being sent and retrieved between home assistant and zigbee to mqtt for that go to the search bar type mosquito click on mosquito broker and click on install here and when it's installed i'd like to tick the boxes for watchdog and auto update and start mosquito now let's configure mqtt in home assistant so for that go to configuration devices and services go to the mqtt card and click on configure click submit click finish and now it's setup the next thing that we are going to install is zigbee to mqtt for that go to configuration add-ons backups and supervisor go to the add-on store and if you're going to search for zigbee to mqtt then you won't find anything that is because we have to add a custom repository that custom repository can be found in github and that is over here and this is the zigbee to mqtt add-on that we are going to add so we need to copy the url go back to home assistant click on the three dots over here click on repositories and we are going to paste that url over here click on add now close it and as soon as it's ready then you see that home assistant will find the zigbee2mqtt add-ons so we're going to install the zigbee2mqtt end on now click on install and now that is installed we have to set some settings in the configuration of zigbee to mqtt and that's over here we have to change some settings for mqtt and for serial so we have to enter the address of our mqtt server and the port of our zigbee stick first let's enter the address for the mqtt server let's add a line here and the address is server mqtt core mosquito we save this we're not going to restart yet on and now we have to find the port of our zigbee stick and for that we are going to configuration add-ons backups and supervisors now we go to system we click on the three dots then we go to hardware we scroll down until we find our zigbee stick there it is let's open that and then we are going to dev name and copy the value in there now we go back to configuration add-ons backups and supervisors we go to zigbee to mqtt configuration and we're going to add a line here which is port and then we paste the address in my case i have a combi stick so i have to add an adapter here if you don't have a combi stick you don't have to add this save it restart the add-on let's look in the lock if it's restarting everything looks fine and now we are going to add an mqtt user so we go to people add person give the name mqtt dash user allow the person to log in then we give a password a simple password in our case because we are only giving the person access to login from the local network so click that create click create again and now we are going to zigbee to mqtt and we're going to enter the credentials there so we go to settings we go to mqtt and then in user we fill in mqtt user and in password we fill in the password that we filled in in the person click submit and now we can start adding devices in zigbee to mqtt first we have to make sure that zigbee to mqtt accepts our new devices so for that we are going to click on permit join all and now i'm going to put my light bulb into pairing mode so zigbee to mqtt is finding my light bulb now i can click disable join and you see it found a light bulb it doesn't have a real friendly name so i'm going to change that friendly name over here let's call it ikea lightbulb going to update the home assistant entity id rename device and if i click on the friendly name you can already see if i click on exposures that you can turn it off you can turn it on you can do things with the brightness i can change the color and i can do other things with it now let's see if i can find it in home assistant so i go to configuration devices and services i click on devices and you see that the ikea light bulb is over here and i can turn it off and i can turn it on here and i also have some other entities so let's add this to a lovelace dashboard i'm going to overview click on edit dashboard i'm going to add a new tab i'm calling it zigbee to mqtt save it we're going to add the card make it an entities card call it light and i'm going to add all the entities here so i have my ikea light bulb itself i have the ikea light bulb update available which shows if there's a firmware update for my light bulb available and i have an ikea liable power on behavior which i can use to change the power on behavior of the ikea light bulb so now my light bulb is added to home assistant let's turn it off let's add a motion sensor again we go to zigbee to mqtt we are going to click permit join all and now i'm going to put my motion sensor into pairing mode so sig b to mqtt found my motion sensor it's still setting it up yes it's been sent up let's disable join change the friendly name it's an acara motion sensor update the home assistant entity id rename device and now let's see if we can find it in home assistant so let's add it right away to the dashboard that i created at the dashboard add card entities give the title motion sensor and we are going to add the different acara entities so occupancy the battery the temperature and the lux now you see that the battery and temperature are not being detected and that is because it pulls every now and then to get that information let's speed that up let's go to zigbee to mqtt click on acara motion sensor when you click on exposures you see that the temperature and battery are not exposed let's try to pair it again so i'm clicking on permit join all and i'm going to put my motion sensor again into pairing mode to see what happens and now you see that the temperature and the battery are exposed and now when i go back to the overview and to my lovelace dashboard you see that it's filled in here so sometimes for some reason you have to pair it again to see this information now let's add the smart plug we're going to zigbee to mqtt we're going to click on permit join all and i'm going to put my smart plug into pairing mode it recognizes the smart plug so here it is you see the friendly name is not that friendly so we're going to change the friendly name [Music] blitzball smart plug update home assistant entity id rename the device and let's check it if everything gets exposed so you see again also on this smart plug not everything gets exposed so for that we go to settings specific and we are going to say measurement poll interval is 5 seconds instead of 60 seconds now we're going to expose this let's wait a little bit and there it is the power the current and the voltage are there so for this smart plug i had to do a different thing to get these things to be available now disable join we go to overview we go to zigbee to mqtt i'm going to edit the dashboard i'm going to add a card for the smart plug and we are going to add all the smart plug information so this is the smart plug itself this is the power this is the energy and this is the outage memory you see that not all the entities are here that were there in zigbee to mqtt but at least you have some information that you can use in home assistant now let's set up an automation using these devices go to configuration automations and scenes create automation start with an empty automation called switch based on motion trigger type is the device so the device is the motion sensor [Music] started detected motion and an auto trigger is also motion sensor stop detecting motion and then we want to toggle the lights it's just an easy automation just to prove that it works toggle ikea light bulb add action device the smart plug toggle the smart plug and let's save this go back to our overview click on zigbee to mqtt and now you see that the motion sensor is clear so there's no motion detected the light bulb is off and the smart plug is off so let's move a little bit in front of the motion detector you see that it detects motion and the lights are going on and the smart plug is also switched on so setting up your zigbee devices using zigbee to mqtt and home assistant is a little bit more work than using zha but the zigbee2mqtt interface has a lot more possibilities than zha so if you like that you can use zigbee2mqtt if this video helped you and it saved you some time please give it a thumbs up subscribe to my channel click on the notification bell and i'll see you next time bye bye [Applause] [Music] you
Info
Channel: Smart Home Junkie
Views: 103,103
Rating: undefined out of 5
Keywords: Home Assistant, Home Assistant for beginners, Home Assistant teacher, Home assistant beginners guide, Home assistant tutorial, Howto, Set up home assistant, beginners guide to home assistant, home assistant guide, home assistant setup, home automation, home automation ideas, homeassistant, how to, install home assistant, smart home, smart home automation, smart home tech, smarthome, zigbee, connect zigbee devices to home assistant, set up zigbee2mqtt in home assistant, zigbee2mqtt
Id: z7d0OQjSiOI
Channel Id: undefined
Length: 15min 9sec (909 seconds)
Published: Sat Apr 23 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.