Hacker News new | ask | show | jobs
by p1mrx 858 days ago
To run Home Assistant on Gentoo, I previously used HomeAssistantRepository but it was constantly breaking. A couple years ago I gave up and switched to pip in a venv, and it's been fine ever since. This should work on any distro:

    $ python -m venv hass.env
    $ source hass.env/bin/activate
    (hass.env) $ pip install homeassistant
The remaining puzzle piece is an init.d script; mine is a hacked-up remnant of the one from HomeAssistantRepository.
1 comments

Awesome thanks, will give this a go! This makes much more sense to me than dedicating yet another, mostly-idle little system.
I run Home Assistant from a "manually managed" Python virtual environment as well, and have been doing so for years. It works fine. The developers are quite aggressive in insisting on recent Python releases, so upgrading is always a bit of work, but it's manageable. I'm using supervisord to keep Home Assistant (and AppDaemon) running, but you could use systemd as well.
Sounds good, thanks. Running manually for the time being, I did see the deprecation warning for Python 3.9, meaning I should get around to updating this Raspberry Pi to Bookworm. (Or NixOS, like my laptops, then I can manage things with more granularity.)