Hacker News new | ask | show | jobs
by tlavoie 860 days ago
One thing that strikes me a bit odd about HA is that it seems to really, really want to be its own install. Make it a Docker container, or a VM, or a full-on OS install. Can it be installed nicely on top of something else?

While I have a few Raspberry Pi and Odroid devices kicking around, they mostly have jobs already. I would like to be able to run something as a package on top, rather than replace what it does now.

1 comments

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.
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.)