Make your own Zigbee remote for Home Assistant 8-20 buttons

Поделиться
HTML-код
  • Опубликовано: 19 июл 2024
  • SPONSOR: This video is sponsored by PCBWay
    Get your PCB's at www.pcbway.com/
    There are a lot of ready made Zigbee remotes - 1 button, 2 buttons, even 5 buttons - but what about 8-20 multi-action DIY pocket size remote? And best of all you can fully customise look, feel and Home Assistant integration.
    Don't forget bragging rights you'll get with device. In this video I'll guide you on hot to make one - from sourcing parts, soldering and programming it.
    In part 2 of the video, I'll show you how to pair it and also a lot of hidden features that this small gem has. And it is supported by Zigbee2MQTT.
    ⏵ Project link:
    modkam.ru/2019/11/13/pult-zig...
    ⏵ Gerber files:
    www.dropbox.com/s/mx7nhwx1cgz...
    ⏵ How to flash firmware:
    zigbee.wiki/books/%D0%BF%D1%8...
    ⏵ Firmware(s):
    github.com/diyruz/freepad/rel...
    ⏵ STLs for case:
    www.thingiverse.com/thing:416...
    Components:
    ⏵ E18-MS1-PCB (exactly that model):
    s.click.aliexpress.com/e/_AN97SV (*)
    ⏵ SMD Push button:
    s.click.aliexpress.com/e/_9QnU61 (*)
    ⏵ SMD Battery Holder (CR2032):
    s.click.aliexpress.com/e/_ApZkE1 (*)
    ⏵ SMD 0805 1K and 10k resistor (100 pieces = 0.40€)
    s.click.aliexpress.com/e/_983ocd (*)
    ⏵ SMD 0805 LED (5x20 pieces)
    s.click.aliexpress.com/e/_AlLrcv (*)
    ⏵ SmartRF programmer:
    s.click.aliexpress.com/e/_AlGE1P (*)
    ⏵ Programming clamp:
    www.aliexpress.com/item/10050...
    Heat gun:
    ⏵ s.click.aliexpress.com/e/_AnhaXr
    Flux:
    ⏵ s.click.aliexpress.com/e/_AUZNTj
    Solder paste:
    ⏵ s.click.aliexpress.com/e/_A30WcZ
    00:00 Intro
    00:22 Thanks to channel members
    00:47 Sponsored by PCBWay
    01:03 DIY Zigbee projects
    03:41 Ordering Zigbee remote PCBs
    05:43 Check if you have all items
    09:08 Soldering timelapse
    11:49 Programming the Zigbee Remote board
    16:31 Insert the CR2032 and check if it works
    17:38 Wrapping up the video
    Don't forget to give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time!
    Have fun!
    BeardedTinker
    ____________________________________________________________
    🧡 If you would like to support me and this channel, you can JOIN and become channel member on RUclips! 🙏
    ruclips.net/user/BeardedTinker...
    ____________________________________________________________
    📣Follow me on other platforms📣
    ✅Twitter: @BeardedTinker
    ✅Discord: / discord
    ____________________________________________________________
    (*) if any, should indicate links that are affiliated links. They don't cost you anything extra but provide small income to get this channel going, and finance future projects I make.
    #10k #HomeAssistant #stream #live
  • НаукаНаука

Комментарии • 110

  • @sharktamer
    @sharktamer 2 года назад +7

    Wow this really looks like something I'd want to try. So much power in a little device for so cheap!
    The soldering is a bit intimidating though... I've only started doing soldering very recently in some light strip projects. I have enough trouble with those, I can see something like this being a lot harder with a normal soldering iron, so it might be worth picking up the heat gun for projects like this.
    Being able to make custom zigbee projects like this is so cool! esphome and other esp32 projects are great, but it's obviously a lot harder to make battery powered projects, so you're usually forced to plug them in somewhere. Not having to worry about that with zigbee stuff is really freeing.

    • @BeardedTinker
      @BeardedTinker  2 года назад

      Heat gun makes this one much easier!

  • @lawrencerubanka7087
    @lawrencerubanka7087 Год назад +3

    Great project and excellent video. Thanks VERY much!

    • @BeardedTinker
      @BeardedTinker  Год назад

      Glad you liked it! The only bad side is that even with deep sleep firmware, batteries last just 3-4 months.

  • @user-xg1fu1su2w
    @user-xg1fu1su2w 2 года назад +1

    Nice tutorial, thanks!

  • @PricelessToolkit
    @PricelessToolkit 2 года назад +1

    nice video ! for the future. first, apply solder paste then place components, then you need to rinse with isopropanol. otherwise, micro balls remain on the board. Good luck!

    • @BeardedTinker
      @BeardedTinker  2 года назад

      Thanks for the tip!!! For most of the components I did it that way, except for Zigbee module. Was afraid I'll get bridge under the modul.
      I didn't record rinsing part but I did wash it out later (if you look closely at the end, you can see some paste near the module that's gone later - but yes, almost forgot that part :))
      Thanks once again for the comment and tip!!!

  • @carltonwbrooks
    @carltonwbrooks 2 года назад +1

    Another great video that I can make use of. Can you post links to the hot air solder gun (mine died a few months ago) as well as the flux and solder paste.

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      Thank you Carlton!
      Added to video description. Soldering past is one of the 2 I have. Other one is not listed anymore with that seller and would need to find exact type. But if I remember correctly, I got most popular brand on Ali - most of the shops carry that one (in syringe).

  • @jalejandro0211
    @jalejandro0211 2 года назад +1

    Excellent great great video. Thank you so much. It’s possible show us how to create program on IDE? Maybe mcuexpresso or any other …

  • @Marco_Onyxheart
    @Marco_Onyxheart 2 года назад +4

    This ZigBee component is fairly cheap. I'd love to try it out in some other projects.

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      Check modkam.ru for some other fun projects. I have 3-4 ready to record.

    • @Marco_Onyxheart
      @Marco_Onyxheart 2 года назад +1

      @@BeardedTinker I'll have to Google translate that, since I can't read Russian. Well, I can read most letters, since I was taught Greek in high school which has a similar script. But not the language. But I already saw a few interesting projects. I may have to show your website to my employer, since I found a few projects that are similar to what we're doing.

    • @BeardedTinker
      @BeardedTinker  2 года назад

      @@Marco_Onyxheart auto translate in Chrome works well there :)

    • @Marco_Onyxheart
      @Marco_Onyxheart 2 года назад +1

      @@BeardedTinker Of course. I definitely think I can get a lot of inspiration from your website. Lots of interesting stuff going on there.

  • @morganyodts1375
    @morganyodts1375 2 года назад +4

    This project is great, Ordering the parts now. Can you cover the integration into home assistant? Is zigbee2mqtt the only option?

    • @BeardedTinker
      @BeardedTinker  2 года назад +3

      Sure it will be in next video. In regard to integration, I can't test ZHA so not sure about support there.
      Zigbee2mqtt has everything embedded and working out of box.

    • @ChunkySteveo
      @ChunkySteveo 2 года назад +1

      Z2M Works straight out the box and no issues. Amazing project!!

  • @jaimemotavaz3999
    @jaimemotavaz3999 2 года назад +2

    Do you know if there is some PCB that allows to put screw terminals instead buttons? It's a great piece to hide in the wall boxes :)

    • @BeardedTinker
      @BeardedTinker  2 года назад

      Unfortunately no, from all the different types, I haven't seen anything like that.

    • @jaimemotavaz3999
      @jaimemotavaz3999 2 года назад +1

      @@BeardedTinker there is a guy that changed the files for that purpose, but haven't shared the gerber files 😥

  • @Efekta
    @Efekta 2 года назад +1

    Хорошо что вы об этом рассказали :)

    • @BeardedTinker
      @BeardedTinker  2 года назад

      Thanks, there are some nay good projects on modkam.ru - will do more.

  • @adifoto6362
    @adifoto6362 2 года назад +2

    Thanks, that remote looks good. I tempted to build one, i am using an zigbee switch to turn on a timer automation that turn on the night light for my kids bedroom. Having different option on the remote is quite good. How long the battery lasts? Thanks for the video.

    • @BeardedTinker
      @BeardedTinker  2 года назад

      Thanks Adi. I was very scared of trying to build this, but it ended but really easy at the end. You need to try it. In next video I'll cover HA part - it's great. For each button you can define toggle or multi-actions (single, double, tripple or quadruple click + click and hold) so it gives you really a lot of actions even on 8 button version.
      For battery, I still don't know. Just finished 2 of them for recording. But it should last relatively long. It has power saving mode.

    • @adifoto6362
      @adifoto6362 2 года назад +1

      @@BeardedTinker Your solder went well, over all is working that is what matters. How it integrates in HA do i need to use events or each button is a switch in HA? for the buttons i have at the moment i have to create an automation for them to be seen by HA since the button comes as an event. Hope this makes sense. Thanks again for your video.

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      It is supported in Zigbee2mqtt and every button is a switch. But for every button you also get configuration entities - so you can use that for more options.

    • @adifoto6362
      @adifoto6362 2 года назад +1

      @@BeardedTinker Thanks for your response. i will have to give it a go. Thanks for sharing

    • @adifoto6362
      @adifoto6362 2 года назад +1

      @BeardedThinker I just order 10 boards from pcbway and i got an email that says "the diameter of the designated holes is only 0.3mm, pls advise can we adjust the mouse bites according to our factory's capability of "Diameter /spacing: 0.4mm/ 0.4mm".
      did you have to change it to 0.4 mm? I assume will not affect the functionality of the board. Thanks again for sharing this.

  • @SenseiKeoni
    @SenseiKeoni Год назад +1

    Hi, i've done all the soldering ^^... by hand
    Checked all the connections but can't do the upload of the firmware with the Flash Programmer....
    if i choose "Program CCxxxxx Soc or MSP430" it can´t find the device;
    Tried the reset button but still not working...
    any advice?

    • @BeardedTinker
      @BeardedTinker  Год назад

      As I've said in Discord - nothing. Looks like PINs you are using are OK, if you checked soldering and using correct FW, there is not much that could be wrong. Of course, very unlikely, but you maybe got damaged module or burned it during soldering, but - that's not common to happen.

  • @0x0081
    @0x0081 7 месяцев назад +1

    Hey man, I know this is an old post but this thing is awesome, there are no already made pads like this or diy tutorials. Really thinking building this but it seams to be an abandoned project, I wonder if this will still bind with zigbee2mqtt ? Do you still use this ? Thanks

    • @BeardedTinker
      @BeardedTinker  7 месяцев назад

      Hi! Yes, that's an old one but it still works with Zigbee2MQTT. Just the battery life. I've gone with deep-sleep version of if and batteries only last 3 months. Keep that in mind.

    • @0x0081
      @0x0081 7 месяцев назад +1

      @@BeardedTinker thanks man, 3 months is ok ... but was it always like this or the firmware has compatibility issues that makes it draw more power maybe ?

    • @BeardedTinker
      @BeardedTinker  6 месяцев назад

      It was always like that. I think design is the issue here or chip used. Really not sure what is using power in deep sleep, but something is.

  • @dudefromkeene
    @dudefromkeene 7 месяцев назад +1

    I don't really want to make one but would buy one. Could I get one that was line powered and is a repeater too?

    • @BeardedTinker
      @BeardedTinker  7 месяцев назад +1

      I haven't seen one for sale in EU/US - although, actually, some were welling it few years back fro Ukraine. But not powered over wire.

  • @darknessblades
    @darknessblades 3 месяца назад +1

    Would it be possible to get this to work under ZHA?
    Am kinda in need of a button/remote with 22+ buttons to use with smart curtains
    The closest one I could find is a "FUT089Z" but I would need one without the sliders
    Hardwiring wouldn't be a issue
    For programming I do have a few death/broken/defective Zigbee temp sensors I could gut the chip from [Display version, with death display].

    • @BeardedTinker
      @BeardedTinker  3 месяца назад

      It would require custom quirk to get it working, but other than that, there is not reason for it not to work.

    • @darknessblades
      @darknessblades 3 месяца назад

      @@BeardedTinker In that case How would I make one with more than 20 buttons?
      I am also planning if its possible to power it with 2x {Ikea AAA} batteries, just to save on CR2350 batteries.
      I would roughly need one that looks like
      remote:
      [top grid 4x3] [4 wide, 3 high] [Mainly to swap scene]
      [Bottom grid 3x8] [3 wide 6 high] [for curtain positions]
      for a total of +/-30 buttons.
      I am familiar with QMK, so if its a similar method of programming/creating the code it should be easy to make one.

  • @user-np1go1vi5c
    @user-np1go1vi5c 10 месяцев назад +1

    May I ask why the signal of my device is so weak? The CC2530 and Zigbee gateway can communicate in the same room, but there is no communication between them due to a wall in the middle. Is the antenna signal on the board so weak?

    • @BeardedTinker
      @BeardedTinker  10 месяцев назад

      Onboard antena is not that great. There is different module (IPX version I think) that has connector for external antenna. But it also depends on the wall. I have large Zigbee network and didn't notice this from inside the apartment.

    • @user-np1go1vi5c
      @user-np1go1vi5c 10 месяцев назад

      @@BeardedTinker May I ask which specific model of the IPX version chip is suitable for this program project? Several PCB boards have been made...

  • @victorclausson4039
    @victorclausson4039 2 года назад +1

    I have one of these USB Blaster programmers that looks very similair to the SmartRF programmer. Do you know if I can use my USB Blaster to programmer instead?

    • @BeardedTinker
      @BeardedTinker  2 года назад

      They are very similar in terms of the box, but not sure if they are comparible. I know that cc debugger and SmartRF work. Haven't seen Blaster used for it so far anywhere.

    • @victorclausson4039
      @victorclausson4039 2 года назад +1

      @@BeardedTinker Ok, thank you for your answer! Really appreciate it. I found a way to flash it with a Rpi too so I could use that instead since I already have a bunch of those. I’m going to make this project but redesign the PCB to fit everything inside a NES-controller with the original buttons. Thank you for making this video.

  • @Blinkation
    @Blinkation 2 года назад +1

    what language and environment do you use to write the program?

    • @BeardedTinker
      @BeardedTinker  2 года назад

      This firmware was created by the author of the project - Jager modkam.ru/
      But you can create your own firmware for Zigbee modules by using this tool ptvo.info/faq/

  • @jhonny001
    @jhonny001 2 года назад +1

    @BearedTinker it would be great if you can show us how to program these modules for a simple temp-humid sensor or for any other arduino kind sensors... There is not much information related to cc2531 programming or code examples

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      This is on Todo list. I'm waiting for development module to arrive where I could easily attach external sensors. It should have already arrived but pack6was lost.

    • @jhonny001
      @jhonny001 2 года назад +1

      @@BeardedTinker do you already have any documentation or source to start with?

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      Forgot to post this here - check this link: zigdevwiki.github.io/Begin/IAR_install/
      It will guide you how to setup dev environment and also pull some sample code.

  • @hulumanu
    @hulumanu 2 месяца назад +1

    Can this be done with the Zigbee 3.0 firmware upgrade on the zigbee module?

    • @BeardedTinker
      @BeardedTinker  2 месяца назад

      There is source in repository, you can try doing it.

  • @MysticMachina
    @MysticMachina 2 года назад +1

    Are we able to make zigbee sensors? Just like with esp chips and esphome

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      Sure, not that easy as with ESP boards + ESPHome, but yes, that's possible. There are a lot of DIY Zigbee projects on the net. Not as much as ESP though.

  • @mruniverse5704
    @mruniverse5704 2 года назад +1

    Hello! Is it possible to soldering keycap from keyboard?

    • @BeardedTinker
      @BeardedTinker  2 года назад

      Connectors on the board are very small. You could solder some wire and use that for keyboard keycaps

  • @sshah876
    @sshah876 9 месяцев назад +1

    Thanks for the tutorial, this is great, it will be even better if this remote work with ZHA, it works in Z2M but same firmware when paired with ZHA only one button is producing zha event, please help i will appreciate any link/info that makes this cool remote work with "ZHA", I use ZHA because it do not use MQTT and has proven to work way more reliably in my setup.

    • @BeardedTinker
      @BeardedTinker  9 месяцев назад

      You should create custom quirk for it. I've never tried creating one for ZHA, so can't help you with this one. The problem is that ZHA is not recognising this device properly.

    • @sshah876
      @sshah876 9 месяцев назад

      Thank you sir, your feedback is appreciated, this will put my searching to rest, hopefully one day someone smarter than me will make it work with ZHA- cheers@@BeardedTinker

  • @kszere
    @kszere Год назад +1

    You Can make vote version? 3 pcs button for vote and 1pcs for qestions. Total 4 pcs button in vertical one line.

    • @BeardedTinker
      @BeardedTinker  Год назад

      Just solder how many buttons you want (4) and ignore rest. It should wrok.

  • @lars-sorensen
    @lars-sorensen 2 года назад

    WOW - maybe some cool bearded russian could make that zigbee alarm keypad that the Home Assistant community needs! 😃

  • @TwanJaarsveld1
    @TwanJaarsveld1 2 года назад +1

    I'm looking to make a mail box sensor using zigbee (because its out of reache for wifi)
    Would that be posible with the same CC2530 Zigbee board ?

    • @BeardedTinker
      @BeardedTinker  2 года назад

      There are different E18 ZigBee boards. This one is good for battery powered devices but there is version with external antenna that could help with the range too.

    • @TwanJaarsveld1
      @TwanJaarsveld1 2 года назад

      @@BeardedTinker can the same firmware be used or is this just for the buttons ?

    • @TwanJaarsveld1
      @TwanJaarsveld1 2 года назад +1

      @@BeardedTinker thanks for the advice I will look into it

    • @BeardedTinker
      @BeardedTinker  2 года назад

      @@TwanJaarsveld1 check ptvo.info site - free tool to create ZigBee firmware. You could use that

  • @anthonyjobson
    @anthonyjobson 2 года назад +1

    Can this remote handle single, double tap and long press for each of the 20 buttons in home assistant?

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      Great timing! Just finished recording and editing part 2 of the video (that will be released tomorrow) - but yes - 4 actions (plus hold and release) for each of the buttons.
      Although, you can customise and make each button only have one single action.

    • @anthonyjobson
      @anthonyjobson 2 года назад +1

      @@BeardedTinker AMAZING thank you! can't wait. this could be such a powerful based module board to make control panel type devices. I'm imagining a fire tablet control panel with 20 quick action physical buttons talking native zigbee around the side which don't require you to mess with a touch screen for common tasks....

    • @BeardedTinker
      @BeardedTinker  2 года назад

      I just hope the video managed to cover it well. Had problem on how to approach it 😂 It will be out in 30 minutes.

  • @jenshansen5344
    @jenshansen5344 3 месяца назад

    Hi BeardedTinker :D
    Would it be possible for you to update the links for the parts?
    Kind regards.

  • @medienmond
    @medienmond 2 года назад +1

    Where can iget this green solder paste dispenser?

    • @BeardedTinker
      @BeardedTinker  2 года назад

      This is the one I'm using: www.aliexpress.com/item/4000891632531.html

  • @spui
    @spui 2 года назад +1

    What is the pin pitch for the programming clamp? 2.54 mm or 2 mm?

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      Sorry, forgot to mention - I'm using 2.54mm

    • @spui
      @spui 2 года назад +1

      @@BeardedTinker Thanks a ton. This is my first zigbee project. I have ordered the required parts and am now awaiting delivery.

    • @BeardedTinker
      @BeardedTinker  2 года назад

      @@spui that's great! Hope you'll have fun with it!!!

    • @spui
      @spui 2 года назад +1

      @@BeardedTinker Thanks again. I've setup my first switch. I can confirm it works well with zigbeetomqtt but unfortunately not with ZHA.

    • @BeardedTinker
      @BeardedTinker  2 года назад

      ZHA has unfortunately shorter list of supported devices. Good thing is that in Zigbee2mqtt you can even add unsupported devices.

  • @fredericmelancon4472
    @fredericmelancon4472 9 месяцев назад +1

    Does it work with zha ?

    • @BeardedTinker
      @BeardedTinker  9 месяцев назад

      Not out of box AFAIK. But you can try and create custom quirk for it.

  • @user-sj3oq2rh3q
    @user-sj3oq2rh3q 2 года назад +1

    I have one with 20 buttons. Everything is great, except for the quick discharge of the battery...

    • @BeardedTinker
      @BeardedTinker  2 года назад

      How long does the battery last for your?

    • @Banjoba
      @Banjoba 2 года назад +1

      @@BeardedTinker I too am interested in this and would make me decide if I want to invest or not. That and also if it would work with ZHA.

    • @user-sj3oq2rh3q
      @user-sj3oq2rh3q 2 года назад +1

      @@BeardedTinker A new battery drops to 30-35% in two months, then it starts to work worse, and I throw it on the shelf...

    • @BeardedTinker
      @BeardedTinker  2 года назад

      @@user-sj3oq2rh3q Good to know - thank you for this info!

    • @user-sj3oq2rh3q
      @user-sj3oq2rh3q 2 года назад +1

      ​@@BeardedTinker Maybe it's just me ... somewhere is short circuit and that's why consumption is... Although it is not clear where, the device is very simple to solder. Need to find out in the Russian-speaking community.

  • @thebatu89
    @thebatu89 2 года назад +2

    May i know what’s the average battery life you’re getting with this?

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Depends on the firmware. But with deep sleep version, maximum I got is 3 months.

    • @thebatu89
      @thebatu89 Год назад

      @@BeardedTinker thanks, and with the deep sleep does it affect normal usage ( eg delayed payload or you need push any button a few times to wake it)

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      No, it sends data on first push so no need to wake it up first.

    • @ketheric
      @ketheric Год назад +1

      @@BeardedTinker Wow only three months? That's a bit disappointing.

    • @BeardedTinker
      @BeardedTinker  Год назад

      Yeah, true.

  • @Heneyspanicker
    @Heneyspanicker Год назад +1

    Good. But title says "for Home Assistant " but that part is misisng in the video

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Did you check second part of the video? First is how to build, second how to add to HA.

    • @Heneyspanicker
      @Heneyspanicker Год назад +1

      @@BeardedTinker no. is that "Add and use DIY Zigbee remote in Home Assistant with 32 actions" ?

    • @BeardedTinker
      @BeardedTinker  Год назад

      @@Heneyspanicker Yes, this one: ruclips.net/video/inKB8N636Wk/видео.html

  • @ChunkySteveo
    @ChunkySteveo 2 года назад +1

    The buttons are a pain in the butt to hand solder! Just go slow and very little heat if you are using an iron!!

    • @BeardedTinker
      @BeardedTinker  2 года назад +1

      Yes they are. Especially since you can melt plastic if you expose it to heat for too long :)

    • @ChunkySteveo
      @ChunkySteveo 2 года назад +1

      @@BeardedTinker yeah I learned that after several just turned into goop and melted away!!! Haha