J1nx

YOU CAN DO IT CHEAPER YOURSELF.
  • Home
  • Articles
    • [DiY] Home (Personal AI) Assistant – BLOG series
    • [DEV] MycroftOS – A bare minimal OS based on Buildroot
  • Projects
    • [DIY] Home (Personal A.I.) Assistant – Project Page
    • [HACK] Installing HassOS on the Homey
    • [DEV] MycroftOS – Buildroot OS for Mycroft A.I.
  • Patreon
  • Contact
  • Home
  • Articles
  • DIY
  • [DiY] Home (Personal AI) Assistant (Installing HASS) – PART 8

Blog

Friday, 24 August 2018 / Published in DIY, Home Assistance, Home Automation, ICT Matters, Project 1, Smart Speaker

[DiY] Home (Personal AI) Assistant (Installing HASS) – PART 8

On to installing Home Assistant on our device. Like with the KODI installation, this is mostly information widely available on the internet, yet again included within this series for compleness sake. So let’s get started with installing the dependencies if not yet installed. (Not really sure anymore, sorry for this)

sudo apt-get install python3 python3-venv python3-pip

Next we need to create a dedicated user for running the software. This is recomended by the developers of Home Assistant, so will follow their advise to do so. Run the following commands;

sudo useradd -rm homeassistant -G dialout,gpio
cd /srv
sudo mkdir homeassistant
sudo chown homeassistant:homeassistant homeassistant

Now we will change our environment to that new user and create a virtual environment for installing the software.

sudo -u homeassistant -H -s
cd /srv/homeassistant
python3 -m venv .
source bin/activate

Next is to install some dependencies within this virtual environment

python3 -m pip install wheel

And then we can finally install Home Assistant itself

pip3 install homeassistant

If everything went OK, we can start Home Assistant manually for the first time.

hass

Running Home Assistant for the very first time will take a while as it is downloading and installing all other things it needs at start up. The documentation mentions 5 – 10 minutes. Best is to keep checking the webpage at the device it’s IP:8123. Once the GUI is all ready, we can stop Home Assistant and carry on.

CTRL-C
exit

Let’s create the systemd autostart at boot file, so that HASS get’s started at boot.

sudo nano -w /lib/systemd/system/home-assistant@homeassistant.service

And insert the following content

[Unit]
Description=Home Assistant
After=network-online.target

[Service]
Type=simple
User=%i
ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"

[Install]
WantedBy=multi-user.target

And then finally onto the last step to enable the service

sudo systemctl --system daemon-reload
sudo systemctl enable home-assistant@homeassistant
reboot

In one of the next blog post I will get into connecting Mycroft with HASS and of course vica versa, connecting HASS with Mycroft.


Do you like what you just read? Keep me going by donating on Paypal or become a Patron.


BE AMONG THE FIRST..
I agree to have my personal information transfered to MailChimp ( more information )
Be among the first to get access to all the latest information, tutorials and how-to's by joining the newsletter email list.
We hate spam. Your email address will not be sold or shared with anyone else.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
Tagged under: DIY, HASS, Home Assistance, Home Automation, ICT-Matters, Raspberry Pi, Raspbian, Smart Speaker

What you can read next

ReSpeaker 4-Mic Array HAT Mycroft A.I. Skill
[HACK] Installing HassOS on the Athom Home – PART 1
[DiY] Home (Personal AI) Assistant (Some more ideas) – PART 9

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • ReSpeaker 4-Mic Array HAT Mycroft A.I. Skill

    A while ago I created a Mycroft A.I. skill for ...
  • [DEV] MycroftOS – A bare minimal OS based on Buildroot – PART 5

    It has been a while once again since the last u...
  • [Update] Busy, busy, busy….

    Holy crap ! The last blog post here is already ...
  • [DEV] MycroftOS – A bare minimal OS based on Buildroot – PART 4

    A first (very) early alpha release is ready. St...
  • [Update] My plans for 2019

    It has (again, yeah I know) been a while since ...

Categories

  • ARM
  • DIY
  • Embedded
  • Home Assistance
  • Home Automation
  • Homey
  • ICT Matters
  • IoT
  • Linux
  • MyCroft A.I.
  • Project 1
  • Project 2
  • Project 3
  • Smart Speaker
  • Website News

Tags

A.I. Adapt Alexa ARM Bootsplash Buildroot chroot crosscompiling DeepSpeech DIY Embedded Google Assistance Google Home HASS HDMI Home Assistance Home Automation Homey ICT-Matters IoT Kodi Linux Mimic Multimedia MyCroft A.I. News Padatious Precise Raspberry Pi Raspbian ReSpeaker RPi Skills Smart Speaker sourcecode Webkit WPE

PETER STEENBERGEN

Born on the 25th of July 1978 in Leiderdorp - The Netherlands. A "geek" who is working 15+ years in the Oil & Gas industry. As a result of that, visited many parts of the world. His strong affinity with ICT matters has earned him certain online recognition and got him involved in multiple interesting projects. Was a co-founder of "The Little Black Box", a multimedia streamer based on XBMC / Kodi. A device that was brought available to big retail shops in the Netherlands such as MediaMarkt, BCC and many big online webshops as bol.com as an end result.

WEBSITE

  • Articles
  • Projects
  • Patreon
  • Our Policy
  • Contact

FOLLOW

  • Facebook
  • MeWe
  • Patreon
  • Github
  • Youtube

© 2018 J1nx | All rights reserved.

TOP