5 ms·
What I wish I had known: HA is just a python program, it's pretty easy to run it manually. After my Pi's sdcard died, I wanted to use an old laptop (more relia
by mrj 2y ago
What I wish I had known: HA is just a python program, it's pretty easy to run it manually.
After my Pi's sdcard died, I wanted to use an old laptop (more reliable with a built-in backup battery) so I followed the deployment recommendations and used the VM image. After that, for the first time I started having problems with HA not running - because VirtualBox would run only about a month before crashing. And I didn't like how much memory a VM locked up on the host.
The documentation makes it sound super complicated, but if you can make a venv and `pip install`, the setup is that easy. I tend to just run `hass` manually but there instructions for setting up supervised. I wish the documentation made this clearer, it really tries to scare people away from that method but running a whole VM is a lot of overhead for my pretty simple zwave-js setup.
- slug 2y agoHave HA running without any issue on a Linux KVM VM.
- 15155 2y agoJust use Docker?
- greggsy 2y agoUSB passthrough for docker (and LVM) is a massive pain. Avoid if you're just starting out. VMs or physical deployments are much more straight forward.
- silversmith 2y agoCould you elaborate? I run HA in docker, and the extent of necessary configuration was adding this in docker-compose.yml: devices: - /dev/ttyUSB0:/dev/ttyUSB0
- Coelacanthus 2y agoMaybe you can consider USB/IP to pass thorough USB device over network.
- ctm92 2y agoFrom what I know, HAOS runs on Docker in the backend, plugins are basically containers that are started up
- mrj 2y agoThere are a few things you can't do with docker (my case was an addon that I wanted). The install docs have a good grid of the differences.
- IgorPartola 2y agoI also don’t think Docker can do ARP network interrogation, though I could be wrong about that. Also not sure how it handles mDNS.
- Sander_Marechal 2y agoI think it can, if you run your Docker containers in host network mode. I run my HA in docker using host mode, and it auto-detects all new devices that pop up on my network.
- noprocrasted 2y agoYou can run in host network mode to avoid that.
- paulfurtado 2y agoThe benefit of docker for home assistant is the packaging of it, rather than isolation. You can always run a container with host network mode and privileged mode so that it can access everything it needs to the same as if it were running directly on the host.
- sylphaenos 2y agoAs an alternative to host network mode, you can give the container a dedicated IP on your network using the macvlan driver.
- XorNot 2y agoI've ditched all ARP, mDNS in my setup. Everything is static IP addresses: it vastly improved robustness against network glitches, which absolutely will happen to you. If my router is unplugged or offline, everything with power can still communicate for example.