How To Automate Your House with the Amazon Echo Dot

What’s good! Sorry this posted a bit late. In this video, I talk about how to setup your Amazon Echo Dot with the Home Automation API and Home Assistant. It’s a bit complicated, but it’s sweet once you get it working. If you have any questions or thoughts, hit me up in the comments, on twitter, on my website, facebook, in the Home Assistant community, whatever you like!


P.S. You need to make sure you can access your Home Assistant configuration from an external network – you’ll need to open a port on your router. 🙂

— Resources —
My website –
Home Assitant Website –
HAASKA Github –

— AWS Test Code is here —

— The Tech I Use —

—Favorite Pi Parts—
Raspberry Pi 3 –
Case –
SD Card –
Power Supply –
Aeotec Z-Stick Gen 5 –
NodeMCU ESP8266 Chip –

— Echo Devices —
Echo Dot –
Echo Tap –
Echo –

50 Replies to “How To Automate Your House with the Amazon Echo Dot”

  1. Minh Chau Nguyen

    Dear Bruh,
    Many thanks for your video.
    I am trying to follow your instruction to make a deployable haaska file but I cannot follow yours for I installed hassio on a PI and using PuTTY (on windows) to run the command. However, it said the "-bash make: command not found". In my computer, I installed Python 3.6.7.
    How can I do now? I got stuck for I know nothing about Python
    Thank you
    Minh Chau

  2. Matthew Lozy

    Hi Ben, will this be getting an update? It's really outdated at this point. I'm trying to run make and getting a [] Error 2 error. No idea how to fix it.

    For anyone running into the same problem, looks like this is working. Not sure yet, still going through but didn't hit the error I was getting before. This is much more updated.

  3. Jan Matějka

    Hey Ben,
    love your videos! Do you think you could cover this again with the echo dot 2?
    Which is the better option lambda or the method described on the home assistant web?

  4. Mohan RatiRam

    I may be doing something silly but I am unable to compile (make is failing) the python code. Herr is the message I get while doing a make …..Exception:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/", line 215, in main
    status =, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/", line 360, in run
    File "/usr/lib/python2.7/dist-packages/pip/req/", line 784, in install
    File "/usr/lib/python2.7/dist-packages/pip/req/", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
    File "/usr/lib/python2.7/dist-packages/pip/req/", line 1064, in move_wheel_files
    File "/usr/lib/python2.7/dist-packages/pip/", line 247, in move_wheel_files
    File "/usr/lib/python2.7/dist-packages/pip/", line 153, in distutils_scheme
    File "/usr/lib/python2.7/distutils/command/", line 289, in finalize_options
    raise DistutilsOptionError("can't combine user with prefix, "
    DistutilsOptionError: can't combine user with prefix, exec_prefix/home, or install_(plat)base
    make: * [] Error 2

    Thanks much in advance.

  5. N

    you have mentioned sudo apt-get and other command. but none of these work on hassio.
    how do we proceed with even installing zip without sudo or apt-get ?

  6. Shawn

    When you add a device do you have to export your zip file and upload it to you LAMBDA every time or does Alexa automatically detect it on your network?

  7. Cristian Tripodi

    Hi Ben, is there any chance to create a new version of this video with the new amazon pages? I will really appreciate that. I purchased a echo Dot but i could not create the integration. Thanks a lot! your videos are really helpfull.

  8. Crash Boogie

    I love how your wife is like "can you not open and close the blinds? I'm on the phone." You should've said something ridiculous back like "Hey, can you not brush your teeth? I have to take out the trash." LOL. Updated video with like an HA bridge would be awesome though. Love your stuff man, keep it up =)

  9. Joe Hancuff

    Your videos have been super helpful so thank you very much for that! But I have to poke fun at you for pronuncing "url". I'm going to have to ask you to not, thanks. 😂😂😂

  10. Mohamed Abdelrehem

    Do i need a real echo to run this skill . I mean the discovery command is only available on a real amazon echo but i am using The AVS on a raspberry pi so I don't know if this skill will work or not

  11. Sly Entertainments

    Hi Ben,

    I am a newbie to all this coding, but im loving the channel, my Alexa and my new Raspberry Pi, which i only bought after getting a dot for Christmas and seeing your videos.
    But after Entering my Privacy Policy EARL sorry URL, i get the following error
    Error: Please provide account linking scope.

    I'm stuck on what to do next

  12. Maximiliano Vera

    I followed these instruction but when I go to Test the Lambda Function I get the following error: "Discovery failed: [Errno 2] No such file or directory".

    I have no clue how to solve this.

    Did any one get the same error? Thanks!

  13. 080xXx080

    Hey Ben,
    props to you, your videos are amazing! Been binge watching them for the last 3 days, while setting up my home assistant. The only thing I cant quite get to work tho, is this damn alexa integration. Do you think you could make another video on that? 🙂 That would be awsome!

  14. Laith Lemaster

    Hey Ben,

    When submitting my skill to amazon for certification, the certification failed. The explanation they gave me was:

    " Your skill appears to be a test or only intended for personal use. If you think you have received this message in error, resubmit your skill for certification and clarify in the test instructions that this skill is not a test and that it’s intended for the general Alexa user base. Also, please ensure that any customer facing information such as the description or icon does not indicate that your skill is a test".

    Did I do something wrong when creating the skill?

    Thanks for your help!

  15. Shashish Dekate

    @BruhHomeAutomation: if I create a Haaska skill, can anybody enable that skill from their alexa account and would they see all my devices (and would they be able to control my home devices)? I mean what prevents other people from not using my haaska skill?

  16. gabriel bratescu

    Hi !
    I set up everything, all may devices shows up in Alexa, but when I say "Alexa, turn on 'device'", nothing happens.
    If I ho in history, my command is recognized corect.
    Any ideea ?

  17. Joni Sykes

    What's the role of duckdns? I'm trying to follow along and changing the config file is as far as I get. There's no point me uploading a config to amazon which looks at localhost…how do I expose my Pi to the internet?

  18. Derrick Layne

    Ben in the video you said the lambda service did not like your dns and encryption I am getting a error

    Discovery failed: HTTPSConnectionPool(host='my.duckdns', port=443):
    Max retries exceeded with url: /api/states (Caused by
    object at 0x7fc15ab1e690>: Failed to establish a new connection:
    [Errno -2] Name or service not known',))

    I was wondering if it may be the same problem you had and if so where do I make the change to my public IP

Leave a Reply

Your email address will not be published. Required fields are marked *