Skip to content

Instantly share code, notes, and snippets.

@itsMattShull
Last active August 12, 2021 20:38
Show Gist options
  • Save itsMattShull/8c1cd27670bef041ca1bf20b50fb98ef to your computer and use it in GitHub Desktop.
Save itsMattShull/8c1cd27670bef041ca1bf20b50fb98ef to your computer and use it in GitHub Desktop.
Offline Home Automation and Voice Assistant

Hardware

  • Raspberry Pi 4 Model B (x3)
  • Raspberry Pi 3b+
  • ReSpeaker 2-Mics Pi HAT
  • Speaker 3 Watt 8 Ohm Single Cavity Mini Speaker

Software

  • Rhasspy Base
    • Raspberry Pi 4 Model B
    • Once you have a refresh install of Raspberry Pi OS, make sure to update password to something. Fine to keep username to pi.
    • Change hostname to be rhasspy
    • Enable SSH so you can access it via ssh [email protected]
    • Use link above for instructions on installing docker and then installing Rhasspy via docker
  • Rhasspy Satellite
    • Raspberry Pi Zero W Raspberry Pi 4 Model B (rPi Zero W didn't process things fast enough. Limited by resources on it.)
    • Once you have a refresh install of Raspberry Pi OS Lite, make sure to update password to something. Fine to keep username to pi.
    • Change hostname to be rhasspy-satellite
    • Enable SSH so you can access it via ssh [email protected]
    • Use this link for instructions on installing docker and then installing Rhasspy via docker
    • Use this link to install the packages for ReSpeaker device, then put the Pi HAT onto the Raspberry Pi Zero. Make sure to reboot after and setup the sound settings.
      • The speaker had white noise when playing audio or speaking and it's because of the kernal version not being supported by respeaker yet. The mics work well though. So to bypass this for now I'm using a Just Mixer S to have the raspberry pi and my PC go through my computer speakers. Not the most ideal but lets me keep going for now.
    • Use the link above to then setup the Rhasspy Base and Rhasspy Satellite to talk to each other. Be sure on the Remote HTTP address, in the Rhasspy Satellite, to use the internal IP addresses for the Rhasspy Base (not the hostname). Using hostname would be ideal but haven't figured it out.
  • Home Assistant
    • Raspberry Pi 4 Model B
    • Use link above to setup Home Assistant on the Raspberry Pi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment