I installed HA in Docker on Windows 11 (miniPC). I had my problems, as a beginer, but finally everithig works… except that it doesn’t locate any entities (which I know work because I started in HA with a virtual machine on my Mac without any problem). My devices are wifi (tapo, shelly and others). When I entered the very first time to :8123 HA didn´t searched for entities, nor finds them later manually.
I suppose the problem is network access, but everything seems fine with the network, the computer and the devices. The respective apps or Alexa have no problem with the devices.
On the installation instructions I read the Exposing devices section. When I add, as suggested, “docker run … --device /dev/ttyUSB0:/dev/ttyUSB0 …” to the docker terminal it responds “invallid reference format” (form c:\xxx) or bash: docker: command not found (from yyy:/config#)
I have reinstalled docker to version 4.34 and thanks to that I applied the new enable host networking option.
I have reinstalled the HA container via stacks.
Now I have been able to remove the line “ports: - ‘8123:8123’” (before it was mandatory to enter in :8123) and it connects to me through localhost:8123, but despite that changes HA can’t find my devices
I am considering changing the installation method since apparently I can’t get it to work with docker desktop. I think I’m giving up.
I’m only going to use the minipc for home automation, but for example I want to manage the cameras with frigate and I read that in that case it was better not to install Homeassistant OS on the minipc. I also read that virtual machines sacrifice more capacity than docker.
Do I insist on the docker route or do I look for another resource from those listed?
You know, you get the minipc with Windows 11 loaded and it seems easier to continue with that (it’s less “scary”) than to install an operating system that I don’t know
But given what I have seen, I will seriously consider that option.
This process has taken me a long time, but I am also learning a lot.
Before I close this post I want to tell you what I finally did. I think its interesting for those beginners like me, in order to avoid the same mistakes.
Finally I installed proxmox in my MiniPC. Correct me if I’m wrong, but it is installing a Debian/Linux-based operating system, like Windows or macOS on a “normal” computer. This has allowed me to install containers or virtual machines (for my computing level it is the same) of Home Assistant, zigbee2MQTT and Docker (for the future?). With this the system works perfectly, although there is a lot to read and, thanks to this, a lot to learn. You have to have time and not be very sensitive to failures!