I’m this king about poking at some component code, and would like to set up a development environment as per the instructions on the web site. But I also have my live version of HA, and don’t want to take that down. I’m wondering how folks handle having two HA installs in parallel.
My current set up is a VM on an ESXi server running Ubuntu with Docker. Hass.io is installed as a container thereon.
Can I install the development environment in a second container on the same system? And change the port for the development one from the default 8123 to something else? I have an Aeotec Z-stick that’s passed to the VM, and when I set up docker and HA, it automatically picked that up, with no effort from me. What would happen here? Can I tell the system which HA instance should have access to the Z-stick? Would the both have it and share it in some way?
Alternatively, I can spinnup a second VM and have a whole other installation, with a different IP, which would make things easier in terms of Port management, but then I couldn’t access the USB device - afaik, the server can only pass it to a single VM.
I can also throw the second install onto an RPi, but I don’t really see any benefit to that over a second VM.
The other aspect is devices. I’d want access to at least some switches and sensors on the development instance, but not sure if there’s any way to share them? I can see mqtt-based items being fairly easily shareable, especially sensors, but not other things? Do I just need to set up some dummy devices to use for development, or is there a good way to share?