Gentoo Overlay for setting up Home Assistant on Gentoo Linux with most needed Python libraries system-wide.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas Billmeier f0daea6fb7 minor changes 1 day ago
app-misc minor changes 1 day ago
dev-embedded minor changes 1 day ago
dev-python minor changes 1 day ago
etc use mariadb client without db, fix dependency block with mysql 1 week ago
media-libs/mutagen minor changes 1 day ago
metadata minor changes 1 day ago
profiles fixed repo_name 1 month ago
.gitignore mount it with a mac :-( 1 week ago minor changes 1 day ago minor changes 1 day ago

Home Assistant Gentoo Overlay

Home Assistant without Docker & Virtual Environments

“Open source home automation that puts local control and privacy first.”

This was fork of which seemed unmaintained to me, at first I just wanted to compile it for my personal use. Some friends told me they wanted to use/see it, so i putted it on my gitea, and was caught by surprise of several hundred pageviews in the very first days. Try to keep it close to the official releases, might get slower during summer. After 3 months it now has ~170 ebuilds listed.

Aside from Home Assistant there are some related ebuilds I use with my Home Assistant:

  • esphomeyaml
  • platformio

If you have questions or suggestions don’t hesitate to contact me…

You will find this Repository at

Location Web Clone me here

Installation is pretty easy:

First add the Overlay to /etc/portage/repos.conf/homeassistant.conf, make sure not to interfere with your gentoo repo, which is at /usr/portage/gentoo in my boxes, because i always have more than one repo active by default:

location = /usr/portage/homeassistant
sync-type = git
sync-uri =
auto-sync = yes
sync-rsync-verify-metamanifest = no

Sync it and install it (as root)

$ emerge --sync
$ emerge -tav app-misc/homeassistant

Additional information can be found at Let me know if any initial depencies are missing. I test fresh installs once in a blue moon, last good compile test was Jan 10th, 2019 with v0.85.0-r2.


  • If it moves, compile it :-)
  • try/test this all with Python 3.7
  • Add libraries if i need it or someone asks for
  • Create a mechanism to check requirements_all.txt against this repo.
  • Write an installation page for the Documentation an get it added.
  • Convince more people to not run Home Assistant with Docker (see

some Background…

I decided to run Home Assistant on a dedicated box, now Home Assistant is running in a virtual X64 here. I assigned 4GB RAM, 4 Cores of an older Xeon E5-2630 v2 @ 2.60GHz and 10GB Disk from a small FC SAN (HP MSA) to it. Recorder writes to a separate mariadb machine, had to limit it due to performance issues (had 530 MB, it’s 30MB today, with approx. 20k events recorded).

Most of my devices are connected via Eclipse Mosquitto (, i use the stable version coming with the original distribution (1.5.3), no SSL inside my isolated IOT Vlan, so no need to upgrade. Along MQTT i am actively using (and therefore testing) the following platforms/components:

  • Sonoff/Tasmota (mostly via MQTT) (
    • Sonoff S20
    • Sonoff Pow R2
    • Sonoff 4ch
    • Sonoff Dual
    • Sonoff RF Bridge with remote Swiches
    • Sonoff Touch
    • Sonoff Basic (not working well with Tasmota)
  • a bunch of OneWire and I2C Sensors (mostly all via MQTT) and
  • ESPEasy (
  • some more HC-SR501 PIR Sensors (via ESPEasy, Tasmota & MQTT)
  • Yamaha RXV (4 devices)
  • SamsungTV (partly not working anymore due to Samsungs newest firmware ‘improvements’)
  • Tradfri (4 devices now, can’t wait for their shutters to arrive in early 2019)
  • Sonos (had many, sold most of them, because they destroyed a formerly very cool gui, only two boxes left)
  • Calendar (connected to a locally run ownCloud, OC not in this Repository) (
  • Kodi on Raspberry (3, all with OSMC) (
  • Enigma2 on Dreambox (2 left) (
  • Hyperion with APA102 (very cool stuff) (
  • EQ3-Max! (i accendently bought some, so i have to use them until they die, 8 devices and a cube)
  • Axis Camera (1, more to come)
  • weather (best reliable forecast you can get for low money) (

I have no Google, Amazon or Apple involved in my privacy (at least in this case) and I am not planning to let them in.

  • Tried to get all Python installed systemwide under Gentoo’s package management and keeping /etc/homeassistant/deps as small as possible.
  • Be aware that all dependent libraries could be marked as stable here as soon as they compile. Ouside HA dependencies execpt portage are not tested.
  • Since i use Gentoo mostly on servers i do not use systemd.
  • I prefer an own profile based on “amd64/17.0/no-multilib”, with python-3.6.5 set as default target, also 2.7 is installed on my test server, will try 3.7 as soon it is marked as stable in portage.


All work on these components is released under the Licenses they came from, which could be (as my grep told me), you can find the appropriate License in the ebuild files and in the sources:

  • “Apache-2.0”
  • ”( Apache-2.0 BSD )”
  • “Apache License 2.0”
  • “Apache license version 2.0”
  • “BSD”
  • “BSD-2”
  • “BSD-2 Unlicense”
  • “CC0-1.0”
  • “EPL-1.0”
  • “GPL”
  • “GPL-2”
  • “GPL3”
  • “GPLv3”
  • “GPLv3+”
  • “LGPL-2.1”
  • “MIT”
  • “MIT License”
  • “PSF”
  • “PSF-2”
  • “The MIT License (MIT)”
  • “ZPL 2.1”

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.