Building a Local Smart Home Voice Assistant With ESPHome!

Поділитися
Вставка
  • Опубліковано 20 жов 2023
  • Home Assistant has finally added the long awaited wake word feature to their local voice assistant, which is amazing news as it means you can now control your smart home locally with just your voice. Today we go through how to setup Home Assistants voice assistant and how you can build your own with an esp32, a microphone, amplifier and speaker using ESPHome.
    Parts:
    ESP32: shop.everythingsmart.io/produ...
    Other ESP32s: amzn.to/3rTYUgq
    Microphone: amzn.to/3Q2ULyF
    Amp: amzn.to/3Qpb5LA
    Speaker: amzn.to/3QqZ4oV
    ESPHome Code:
    gist.github.com/EverythingSma...
    ESPHome beginners guide:
    • This is SO Much Better...
    Patreon:
    / everythingsmarthome
    Buy Me a Coffee:
    www.buymeacoffee.com/EverySma...
    Written Article:
    everythingsmarthome.co.uk
    EVERYWHERE YOU CAN FIND ME:
    Shop:
    shop.everythingsmart.io
    Everything Smart Home Community Discord:
    discord.everythingsmarthome.c...
    Twitter: / everysmarthome (@EverySmartHome)
    Instagram: / everythingsmarthome
    Facebook: / everythingsmarthomeoff...
    #homeassistant #smarthome
    ________________________
    Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
  • Наука та технологія

КОМЕНТАРІ • 310

  • @synesthesiam
    @synesthesiam 7 місяців тому +62

    Thanks so much for making this video, Lewis! I would absolutely buy mic add-ons for my EP1's :) Also a small note: you can test wake word detection via the pipeline debug panel now too.

    • @EverythingSmartHome
      @EverythingSmartHome  7 місяців тому +10

      Thanks Mike, totally forgot to mention that and it's useful for testing!

    • @wildekek
      @wildekek 7 місяців тому

      A collab between @HexiBase and@@EverythingSmartHome would be really nice.

    • @gothnate
      @gothnate День тому

      @@EverythingSmartHome Couldn't you put this device in a central location of your house (depending on how large it is) and connect multiple speakers and microphones around the house without having to have multiple devices?

  • @vinloc
    @vinloc 7 місяців тому +126

    Who else is waiting for another product that beats out the big manufacturers with all the features the community wants from Lewis for this? :D

    • @BenCos2018
      @BenCos2018 7 місяців тому +3

      facts
      I am very much waiting for it haha

    • @qwertyuiop8642
      @qwertyuiop8642 7 місяців тому

      Any requests?

    • @BenCos2018
      @BenCos2018 7 місяців тому

      @@qwertyuiop8642 A esp based addon for assist to allow voice control

    • @ianb1121
      @ianb1121 7 місяців тому +2

      My Presence Lite arrived today, really impressed with the kit so far, just need to spend some time getting it configured, thanks Lewis!

    • @johnnijakobsen1270
      @johnnijakobsen1270 7 місяців тому +4

      Also ordered several presence lite. Looking forward to try them out. But yeah why not stick a microphone on the boards on either ep1 or lite. I don’t care about speaker confirmation everywhere. Could just be a led. Just have to fit in the box. 😊
      But yeah wonder what it would take to make a device to run wakeword locally and create a nice case for it. 🤔

  • @garyhalsey7693
    @garyhalsey7693 7 місяців тому +1

    Loved this video! I’m an Arduino project builder and IT person and have HA running in a docker container. Will be getting hold of an ESP32 to give this a go, after watching the ESP Home intro video first! You also have yourself a new subscriber!! Keep up the good work!!

  • @JonLinde
    @JonLinde 7 місяців тому +12

    As usual, great video.
    And yes. We absolutely want to see an add-on board with microphone and speaker. Maybe even an additional LED to show if it is listening for wake word.
    Would also be nice if the microphone could do double duty and listen for sounds in a more general way. Like any sound. "Trigger, if sound level is above xx dB."

  • @NylzTube
    @NylzTube 7 місяців тому +8

    This is awesome. Can’t wait to spend way too much time on integrating this 😂

  • @philip_fletcher
    @philip_fletcher 7 місяців тому +2

    Thank you. I've been (lazily) waiting for a full local tutorial. Much appreciated.

  • @riaanpretorius8184
    @riaanpretorius8184 7 місяців тому +12

    I think the ways they've come for a private voice Assistant is amazing, even just getting wake words to work fairly decent. I am satisfied with it even being processed by the HA server locally, as the traffic never leaves the internal LAN, and if you pair it with something like the EP1 with automations the bandwidth really becomes negligible

  • @songworks17
    @songworks17 7 місяців тому +34

    I'd love your Everything Presence One with voice assistant integrated into one device!
    Would also be great if it could directly disable the microphone if no presence is detected, rather than go through an automation?
    Now that I think about it, that sounds great to me.
    I guess I'll try to build one such myself next year. Been wanting to DIY something with ESP for a while now.

  • @gjvine
    @gjvine 7 місяців тому +8

    I'd really love if you could provide a kit to upgrade existing fp1's as well as an option to buy the whole setup at once. The optional ability to have the mic disabled when no presence would also be great :) Keep up the good work.

  • @DOM_EU
    @DOM_EU 7 місяців тому +10

    great video. I'm really excited about what's to come.
    Since I have 7 EP1s in operation myself, I would be happy to receive a kit to be able to use the voice function.
    such a kit with microphone and loudspeaker would be cool and maybe a new housing to print yourself 😂

  • @chrisdixon5241
    @chrisdixon5241 7 місяців тому

    Excellent news! I can live with wakeword detection being done centrally rather than on device, especially since the required bandwidth per device is quite low.
    If anything it adds more flexibility since you could dynamically switch the pipeline and associated wakeword depending on who is home or present in a particular room (multi-lingual family / friends and relatives coming to visit / etc.)
    Great job HA team!

  • @hanswerner6882
    @hanswerner6882 7 місяців тому

    homeassistant gets better and better so nice to see the progess

  • @BallsworthBallsbury
    @BallsworthBallsbury 7 місяців тому +6

    13:16 Lewis I love your humility. You could have easily mentioned the fantastic presence sensor that you sell here, but you chose not to :)
    Fantastic video as always! Thank you for all you've done for this community!

  • @MartinHiggs84
    @MartinHiggs84 7 місяців тому

    Great video & hope you are not affected by the storms - stay safe and well.

  • @ianb1121
    @ianb1121 7 місяців тому +2

    Microphone for EP Lite would be good too, mine just arrived today - thanks Lewis for designing these products!!

  • @__Ben
    @__Ben 7 місяців тому +8

    Just waiting for the pipelines to be able to know what area the calling device is in now, then it'll be perfect (eg: say "turn the light off" rather than "the the kitchen light off") There is an open pull request for this so hopefully soon!

  • @jamesg.4384
    @jamesg.4384 6 місяців тому

    Lewis...anxiously awaiting YOUR I2S microphone breakout board!!! Great video as always, many thanks!

  • @BenSycha
    @BenSycha 7 місяців тому +1

    Okay, Lewis you need to bundle the voice features into your EP1 hardware! Just throw one in each room and 💥BOOM💥 you have all you need for hands free human interaction!
    I could see that as the backbone to my HA set up. Great stuff as usual buddy!

  • @Lezcarr
    @Lezcarr 7 місяців тому

    Brilliant works a treat, cant wait for this voice assist to mature, thanks for the video

  • @TEverlith
    @TEverlith 7 місяців тому

    Another fantastic video! Hope you've got some time off planned....you've been one busy dude!

  • @cyberdjro
    @cyberdjro 7 місяців тому +1

    I just built this a few days ago and it is awesome, especially because google home and alexa don't support my language and while i'm fine with English, it is more natural to speak your day by day language when using home automations.

  • @BarneyPowell
    @BarneyPowell 7 місяців тому

    Can’t wait to try. Thank you for this!

  • @ericbelanger6900
    @ericbelanger6900 7 місяців тому

    Yes! Microphone add on to EP1 would be awesome! 👍

  • @samclay7301
    @samclay7301 7 місяців тому +2

    So great seeing all this strung together after the gradual releases this year!
    So EP-1 Pro with speaker and mic when? 😉

  • @7MBoosted
    @7MBoosted 7 місяців тому +7

    I love my EP1, it is so cool. But I think I am going to wait until the EA1 (Everything Assistant One) to add local Voice Assistant to HA.

  • @andersyuran7725
    @andersyuran7725 7 місяців тому

    This would fit perfectly in the EP!

  • @matthewburkett8902
    @matthewburkett8902 7 місяців тому +3

    Man I have to give this a try! Would love to have the response play back on a speaker already in that room like Sonos or heos. With it either pausing the media playing or lowering the volume in that room so it can hear better.

  • @dylan_00
    @dylan_00 7 місяців тому

    Yes, I would love a speaker+mic combo for the EP Lite!

  • @gmaclean1
    @gmaclean1 7 місяців тому +1

    I’d also love to see a Docker/ Unraid video as well. As always, love your videos!

  • @junkins
    @junkins 7 місяців тому

    Very very cool! This is now my next project, thanks Lewis 😎

  • @Chris173972
    @Chris173972 7 місяців тому

    Yes!!!! Microphone accessory for EP1. Maybe speaker too if possible...? New 3D Printed case with speaker at back maybe?

  • @rogeriocamargo1984
    @rogeriocamargo1984 7 місяців тому

    It's sweet and really amazing. Nice video :D Thank you

  • @Kurzei
    @Kurzei 7 місяців тому +2

    Yes yes yes, I would love the microphone add on for the EP1. That would be perfect. Also, hoping they add "computer" to the wake word list soon. All us star trek fans will be waiting xD

    • @Krull56
      @Krull56 7 місяців тому +1

      Computer already exist with porcupine1 addon

    • @Kurzei
      @Kurzei 7 місяців тому

      @@Krull56 ah good too know

  • @ilbozitto
    @ilbozitto 7 місяців тому +1

    This video is beyond epic ❣

  • @WATTYUK
    @WATTYUK 29 днів тому

    Thank you for this video it has helped me out alot.

  • @sylvaindecrom
    @sylvaindecrom 7 місяців тому +1

    Adding a mic and speaker to the presence detectors would be very cool

  • @devinhedge
    @devinhedge 7 місяців тому +3

    Ideally, I'd like the EP2 (hint) to have the built-in microphone with on-device wake word, and the speaker be configurable in the response from Home Assistant so that it can output the voice response from the voice assistant through something like a Sonos speaker associated with the same room where the voice assistant was activated from (the room the EP2 is associated with).

  • @chrisperrywv
    @chrisperrywv 7 місяців тому

    This is legitimately exciting

  • @kamalgw2559
    @kamalgw2559 7 місяців тому

    Keep up the good work 👏

  • @circuitdotlt
    @circuitdotlt 7 місяців тому +1

    FYI I have connected 40W 4" speaker from FaitalPRO to my echo device and it outputs a crazy amount of volume, more than enough for music listening in 500sqft room. These speakers are very sensitive and perfect for ceiling-mounted smart speakers.

  • @capledavis5799
    @capledavis5799 7 місяців тому

    I just purchased EP1 and would love the addition of microphone and speaker.

  • @orodimusprime
    @orodimusprime 7 місяців тому

    absolutely add a mic as an accessory for the ep1!!!!!!

  • @TristynRusselo
    @TristynRusselo 7 місяців тому +2

    Picard walks into his readyroom and says : " Computer, lights! "

  • @techdad6135
    @techdad6135 7 місяців тому +1

    That would be awesome to have a microphone built into the EP devices. If you do go down that route please add the ability to easily disable the microphone.

  • @bencooper2467
    @bencooper2467 7 місяців тому

    Brilliant video thanks. Waiting for a how to guide to set this up on a pi 3b use some of that old Tec up.

  • @grzestel
    @grzestel 7 місяців тому

    Nice as always ;)

  • @Motomurphy
    @Motomurphy 5 місяців тому

    awesome thanks!

  • @MrDingleberry31
    @MrDingleberry31 7 місяців тому

    Wow thanks for the info

  • @TNTProTec
    @TNTProTec 5 місяців тому

    Definitely want a mic accessory for the EP1🤟

  • @groto27
    @groto27 7 місяців тому

    This is great! I am hoping someone will design a half way decent 3D printed case to put this ESP32/speaker setup in so it can look halfway presentable. Until then I've ordered an M5 to play with.

  • @Littlecheez17
    @Littlecheez17 7 місяців тому

    this is awesome!

  • @eikeholz
    @eikeholz 7 місяців тому

    Hey Lewis, great video as always. If I understand you correctly, I could utilize my four EP1 as microphones? Or is it either presence detection or voice? A combination of both would be awesome

  • @robertjackson771
    @robertjackson771 7 місяців тому

    Yes please do the microphone for the everything presence one. Thank you

  • @DeclanMullen
    @DeclanMullen 7 місяців тому +1

    great explanation Lewis, getting closer to general consumer level, are you going to create a new EP1 Kit with a voice assistant included?

  • @MrMoley666
    @MrMoley666 7 місяців тому +2

    As if you needed to ask... Yes please for a mic for the EP1!
    Personally I'm easy about a speaker, depends how loud/clear it can be in a busy kitchen and what sort of new case it would need.
    Perhaps it might be possible to cast response audio to an existing Google speaker, if that's not too laggy...
    Edit: Actually perhaps bluetooth would be faster, always forget they do that.

  • @jellyjenn12291
    @jellyjenn12291 7 місяців тому

    hey great video thanks :) yeah Id total buy an add on mic for my EP1 that would be a great way to add voice control without needing something else sitting around.

  • @JimmyDSausDE
    @JimmyDSausDE 7 місяців тому +3

    Thanks once more Lewis, straightforward step by step guide, as always! Also, +1 for the EP1 mic add-on module! Any idea if USB mic arrays like the Seeed Studio ReSpeaker work with Home Assistant?

    • @dant1677
      @dant1677 7 місяців тому

      I'd like to know this as well. I have a respeaker in a drawer since playing with rhasspy a while back

  • @makanimike
    @makanimike 7 місяців тому

    yes please on the additions for EP1 and EPlite. :)

  • @Tntdruid
    @Tntdruid 7 місяців тому +1

    I need HA to brew tea and bring it to me 😄

  • @faux_hobo
    @faux_hobo 7 місяців тому +3

    Yes, if your presense sensor also included a mic and (maybe) mini speaker so i could use it for wake word stuff, I'd buy one for every room in my house (slowly, but i'd get there).

    • @StephenBrownII
      @StephenBrownII 7 місяців тому +1

      I was thinking this exact same thing.

  • @grahamrussell6014
    @grahamrussell6014 7 місяців тому

    Be well up for a pre-made device Lewis 🎉

  • @khanx071
    @khanx071 5 місяців тому

    Thank you, this video is yet another great one like many you do. I have followed it to make my own less the speaker. Almost all look good, device seems to be up and running however, no response and "Assist in progress" is off. any help to debug would be great

  • @CDRaff
    @CDRaff 7 місяців тому +1

    Just an FYI: With that inmp441 the data sheet says that in mono applications the L/R pin should be pulled low so that it is assigned to the Left channel to reduce interference.

  • @emka2347
    @emka2347 6 місяців тому

    5:55 "you should see that all three services now show up" .. yeah, or not :D why am i not surprised? That's HomeAssistant :D

  • @darkgtprince
    @darkgtprince 7 місяців тому

    this is pretty huge. i stepped away from HA because i was able to accomplish everything in another platform, but being able to self-host a voice assistant is huge. i might just have to load up HA again

  • @worldofpayne
    @worldofpayne 7 місяців тому

    I hope this leads to us being able to have custom voice assistant voices... celebrities/characters etc

  • @TomsDIYShop
    @TomsDIYShop 6 місяців тому

    This sounds like an amazing feature and I'm sure I'll come up with lots of ways to use it.
    Question: Can you configure an existing smart device, such as Amazon Echo or Google Home, to act as the voice command trigger / responder for the new voice assistant function within Home Assistant?
    Thank you for the very informative video and the detailed explanation, great job, as always!

  • @Steriku
    @Steriku 6 місяців тому

    Great video! How did you go about tuning the noise_suppression_level, auto_gain and volume_multiplier? Is it just trial and error? How do you know which one to tweak based on what is being understood by whipser?

  • @allegedlyundead4242
    @allegedlyundead4242 7 місяців тому +2

    As someone that is about to pick up a EP lite kit, Would you make a video about adding the microphone into the EP1 and the EPL?

  • @michaelwalberer3837
    @michaelwalberer3837 7 місяців тому

    Thank you for the great video. Would like to buy upgrade kit for all my EP1s. Cool. Please proceed....

  • @adamplecha7607
    @adamplecha7607 7 місяців тому

    Some rtttl buzzer can be attached and trrigered on listen and on end action for listening sound.

  • @wilhelmspeck5870
    @wilhelmspeck5870 7 місяців тому

    Thanks Lewis for another great video. I would like to know, how it could be accomplished to implement a sound feedback instead of status LEDs on such a voice assistant. For example I would like to have some Startrek computer sounds to show if the command was understood or not. The "usual switched on" or "switched off" is rather long and in fact really useless. Perhaps this is an idea for an follow up video?
    Thanks again for your great work. Cheers Wilhelm

  • @Mostheater
    @Mostheater 7 місяців тому

    Great video thank you! The local processing of your voice happens very fast. Where do u have HA installed? On my setup it’s really slow and looking for a nuc, but don’t really know which one I should get…

  • @user-hu9kk6gj7w
    @user-hu9kk6gj7w 5 місяців тому

    Hi Lewis, fantastic and informative video as usual. I have bought the ESP32 chip from the store, wired it up following the video instructions. HA recognises the ESP device and everything seems to be configured OK. It is my first time with ESPHome / electronics and so am a complete newbie. I have set-up the voice pipeline and it works from my laptop browser microphone and speaker. However, the Assist button doesn't come on at all when I speak to the ESP microphone at all. Please can you advise where I should begin trying to resolve and get this exciting project working. Any hints would be gratefully appreciated either from you or the wider community. Thanks in advance for any ideas you could provide.

  • @elmonte7834
    @elmonte7834 7 місяців тому

    Finally! Wake words.
    P.S. I am waiting for delivery on an EP lite so yes, I would be interested in adding mic and speaker.

  • @cronner
    @cronner 7 місяців тому

    EP lite with speaker and mic could be sick :O

  • @fredrikpalsson3169
    @fredrikpalsson3169 6 місяців тому

    Great video as always! I have a couple of esp32 camera board installed and connected to HA, would it be possible to add the mic to this board and use it as a voice assistant in combination with the camera?

  • @saltwell
    @saltwell 7 місяців тому

    Thanks for this but my heart sank when I saw you mention ESPHome. I consider myself competent with technology and have Home Assistant voice control working on my Intel NUC via a cordless phone with Grandstream VOIP and through the Companion app. However, it would be an understatement to say that ESPHome had me pulling my hair out when I tried to set it up with an Atom Echo. I read every available instruction and spent literally days trying to set it up - a total of at least 30 hours. I found Home Assistant/ESPHome's own instructions ambiguous and unhelpful. I had an Echo device that was recognised by the system but wouldn't do anything, then on attempting to reinstall it, a whole raft of different problems ending with a persistent encryption error that, according to ESPHome's documentation, had been fixed a month earlier! I finally gave up and binned the device for the sake of my mental health. Since it means going into ESPHome again and adding custom hardware, I won't try to follow your process but instead wait for further developments in input devices.

  • @mice3d
    @mice3d 7 місяців тому

    Thank you for sharing! Trying to get it to work on the esp muse luxe speaker. But haven't got too far. (Video request ☺️) Also want to run the models on my blue iris machine as it has more power. Currently what works well for me is willow on an espbox :)

  • @eriklundstedt9469
    @eriklundstedt9469 7 місяців тому

    What I would love to see is:
    * A way to talk to assist programmatically (rest API?)
    and get a response back, to do local TTS and/or STT
    * A way to "talk" to assist using some existing chat system (IRC, XMPP, mattermost) etc
    Or

  • @turbochip1208
    @turbochip1208 7 місяців тому

    You're going to make me start soldering things again and remember my college days in engineering. I drank a lot of alcohol along the way to forget those days. LOL

  • @JaguarInfinity
    @JaguarInfinity 7 місяців тому

    I've got 3 EP lites on the way, would love to look at including this feature. Main issue wouldn't be sourcing the parts and wiring it myself but having a suitable enclosure to hold the new components in. Any thoughts of making a 3D printable enclosure file available to print that can hold the components recommend in this guide?

  • @PeterHellmich
    @PeterHellmich 7 місяців тому

    Thank you lots for this example and the Code. I was trying to do it with the instructions for ESP32 from the Chapter 4 Blog post. But it only refers to the code for the M5 and it is missing a wiring diagram. Without any knowledge about I2S i got stuck pretty fast... 🤪

  • @TheHellis
    @TheHellis 7 місяців тому

    You need som kind of box for the speaker to make is sound better.
    I remember I found a lid that was the perfect size for one of those speakers a few years ago.
    Just some hot glue and it will be a major difference

  • @MaDcaTz83
    @MaDcaTz83 7 місяців тому

    Great video! Just a quick question, is it possible to use the microphone and speaker of a tablet that is serving as a wall mounted dashboard?

  • @jellyjenn12291
    @jellyjenn12291 4 місяці тому

    great video again, i believe they did just announce that you can build a satellite that runs Wake Word detection directly on it, can you do a video on how to build one? Id really love that.

  • @djAnakin
    @djAnakin 7 місяців тому

    It's happening!🎉

  • @thedayb4tomorrow
    @thedayb4tomorrow 7 місяців тому

    The thing we most urgently need is an out-of-the-box S2T engine with the voice of GLaDOS :p

  • @scotta1725
    @scotta1725 7 місяців тому

    As always, a great video. I cant get past testing the speaker on my PC (it has a red exclamation mark next to it). (Running HA on RaspPi, accessing HA from firefox or chrome). I'd love a video on how to setup https locally (if this is what is needed to make it work). Subscribed to home assistant cloud and use that for google integration / remote access

  • @timwparkinson
    @timwparkinson 7 місяців тому

    HI Lewis... amazing videos, do you have any info on how to get th ESP muse lux for wake words?? I have 2 and cant get it to work... thanks

  • @PatrickBulteel
    @PatrickBulteel 7 місяців тому

    Maybe you can do a video on the creative "containers" viewers create for their home. (Like the R6, I'm sure others will come up with fascinating devices.)

  • @PremyslLESZKO
    @PremyslLESZKO 5 місяців тому

    Hi Lewis, this is great!!! I have already builded this Voice assistant and it is working !!!!!! I do have an additional question. Is possible to set this "ESP voice assistent device" also as a media_player entity? To stream also other tts messages to this device? Thank you. Prem

  • @michaelflenniken1057
    @michaelflenniken1057 7 місяців тому

    Thanks for the video, Lewis! I'm trying to build one (or more) of these, but the Amazon link for the "Other ESP32s" has a completely different pinout mostly marked with D{number} or RX{number} This is my first ESPHome project, so I'm a bit confused. Can you point a newbie to a resource to figure out which pins can be used here? In particular, there's no 5V pin on that version.

  • @musli172
    @musli172 5 місяців тому

    Interesting vid, thanks for putting this together.
    I have succeeded getting this work on Arduino framework, instead of esp-idf. What's the reason for/upside of using esp-idf?

  • @S-Technology
    @S-Technology 6 місяців тому

    I’ve been making a local voice assistant in Python as a side project for a while now. It’s really cool that home assistant makes it so easy to make your own.
    But I’m curious if there’s a way to tie the 2 together as I don’t want to just scrap the original project I’ve been working on?

  • @simon021
    @simon021 7 місяців тому

    Can we use this without having SSL setup locally, or without Nabu cloud? It doesnt work through the HA app. It would be awesome to see you do a video on how to get local SSL up and running. Love your content!

  • @ShooterQ
    @ShooterQ 7 місяців тому

    We're finally here.

  • @mattt9640
    @mattt9640 3 місяці тому

    Hi Lewis, i think your videos are great, what do you think about creating a video and selling the hardware to create a voice assistant device that can replace my google boxes around the home? I have home assistant all configured but the hardware is either poor quality or difficult to get hold of for real room voice assistant replacement. Hope this makes sense.

  • @wscottfunk
    @wscottfunk 7 місяців тому

    Question ---> during the testing phase. For Assist, can you still use the Google integration for voice control until such time as you completely switch over to Home Assistant Assist?

  • @MrDavegeo
    @MrDavegeo 7 місяців тому

    If the future roadmap might put processing on the mic/speaker device instead of the hub, does it make sense to only treat this current solution as a bit of fun rather than splurging out and setting one up in every room (like I'm itching to do 😂)?