Allow other addons to use the same Hailo device (Hailo8l in my case)
Describe what you are trying to accomplish and why in non technical terms I want to use multiple Hailo based addons (whisper-hailo and Frigate) in a single Home Assistant instance.
Describe the solution you'd like My understanding is that this line denotes that frigate essentially locks the hailo device to use.
My hope is that a relatively trivial change here would allow multiple addons access to the same device concurrently.
Describe alternatives you've considered
Multiple Hailo devices - this is cost prohibitive, and considering that actual usage of my device (3 cameras at 2k resolution) below, one device should be more than sufficient.
Which version of Frigate did you test with? You link to the code also links to a comment
Hey @NickM-27 I'm using the homeassistant addon v0.16.0-rc4.
Yes the comment in there mentions that the process is left running. I assumed that was relevant to why the device is seen as in use by other addons. If not, please ignore.
Hailos can not be accessed by multiple processes at the same time, what you are requesting is not possible
https://community.hailo.ai/t/hailort-error-check-success-failed-with-status-hailo-out-of-physical-devices-74/9511/3
@NickM-27 Hi, Hailo can be accessed from multiple processes using our multi process service. We need to make sure it is running on Home assistant and called with the proper flag. I'll help enabling it.
Thanks, I saw some mentions of that but no documentation
Happy to test or help out as needed here guys.
Just for info guys, this is from the hailo whisper repo, which I assume uses the multiprocess service as @giladnah references https://github.com/mpeex/wyoming-hailo-whisper/blob/85d9583b6618443fe16d067d0d7fc66f68a9ff8e/wyoming_hailo_whisper/app/app_hailo_whisper.py#L92.
@BarryOCathain We did added an option to enable the service in the whisper repo but it is not enabled as default. In addition in order to make it work across docker containers we will have to run the Service on the Host (i.e HA OS or RPi OS) and add some port forwarding in the dockerFile. We will test and share the required flow. @OmriAx
@NickM-27 can we reopen this issue to ensure that it doesn't get lost in the ether? Thanks!
FWIW based on what reading I have been able to do, there should be no changes needed on the Frigate side