Home Assistant Supervised on a Raspberry Pi install in 2020 (Updated 9/26)
Автор: GeekToolkit
Загружено: 2019-12-19
Просмотров: 59572
Home Assistant Supervised on a Raspberry Pi install in 2020 (Updated 9/26)
For the non supervised (and other options) or to understand the Supervised install, please see this new video: • Home Assistant Tutorial Part 1 - Installa...
Note: This describes how to do a 'supervised' install. It almost became deprecated. I've been working the past month on a new video explaining ALL install types, why you might choose each one (There are 5 major types of installs..this is just one of them called 'supervised'). Also I've been listening to forums and threads discuss install types and taking notes. That video should be out soon. This video is still useful, but really, what the community needs is a post 'Hass.io / supervised major change' tutorial which brings things in line with the state of HA in the latter half of 2020.
Update 4 (Thankyou Mandeep Kumar!)
Please read the bottom of this for the commands that must be run before you run the curl command to get Docker setup. Also please read the 'of note' section. I'll link to a new video when I have one up, but this is now what I'd consider an 'advanced' install technique.
There are reports that Raspbian is not working well, but that Ubuntu Server is. You can get Ubuntu Server from:
https://ubuntu.com/download/raspberry-pi
The command should now be:
curl https://raw.githubusercontent.com/hom... | bash -s - -m raspberrypi3
Also, please read the following page before doing this:
https://github.com/home-assistant/arc...
Of Note:
1) This is no longer supported on any version of Linux, only Debian.
2) This is not supported if you install software outside of Home Assistant's core
3) This requires you to update the OS yourself for security fixes
4) This requires you to keep all dependancies in order.
I'm editing a new video on all of the ways to install Home Assistant, and how to chose between them. IMO, this is no longer the best way to install HA, as it's essentially been nerfed (unless you don't care about support and know what you're doing). I believe the new best way is via a VM, either Proxmox, unraid, FreeNAS, HyperV, or ESXI. Unless you're looking to just run home assistant and want to run it on a beefy machine...then this is stil viable as long as you keep the OS updated.
I'll keep updating this description as issues arise. Home Assistant (and really Raspbian) are ever changing pieces of software. Since I've filmed this there was a huge renaming for the Home Assistant brand...Hass.IO is now Home Assistant, and the old Home Assistant is now Home Assistant core. Just more stuff to try to keep up with :)
UPDATE: I made a few mistakes...I didn't specify that the prereqs on the website have to be installed first. Also I thought sudo-i was a shortcut, but it actually changes how the curl script behaves. In the future I'll be more careful. If you had docker installed and were running sudio then the command in the video is fine, but if you get a "permisison denied" despite running sudo, please follow the below. I'll get a new video up with this and some of the other feedback when I get a sec.
NOTE: If you don't have docker and the prereqs, please do this FIRST!
************************************************
sudo apt-get update
sudo apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
curl -sSL https://get.docker.com | sh
************************************************
Then disable ModemManager using:
************************************************
sudo systemctl disable ModemManager
sudo apt-get purge modemmanager
Then please reboot (sudo reboot).
To run the following, please first run:
sudo -i
and THEN:
curl -sL https://raw.githubusercontent.com/hom...| bash -s -- -m raspberry
Note: The main thing about this install is it's raspbian/linux based...this doesn't use the Hass.IO image, but shows how to install it on top of raspbian which I find to much more useful for remote administration
Home Assistant has changed quite a bit in 2019. I've been enjoying it, but a few days ago I lost my entire install to a corrupt MicroSD card. I decided to start from scratch, and part of that is to reinstall to a USB drive instead of an SD card. Also, I'm going to document each part so that the community has a bunch of short videos to see how to do things like setup Zwave, or smart lights, or handle HTTP or MQTT requests. In the videos I'll also talk about the technologies to help people understand what terms like Tasmota or MQTT are.
How to setup USB Boot on a raspberry pi 3:
https://www.raspberrypi.org/documenta...
Hass.IO install documentation can be found at: https://github.com/home-assistant/has...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: