frigate icon indicating copy to clipboard operation
frigate copied to clipboard

Allow other addons to use the same Hailo device (Hailo8l in my case)

Open BarryOCathain opened this issue 4 months ago • 10 comments

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

BarryOCathain avatar Aug 14 '25 16:08 BarryOCathain

Which version of Frigate did you test with? You link to the code also links to a comment

NickM-27 avatar Aug 14 '25 16:08 NickM-27

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.

BarryOCathain avatar Aug 14 '25 16:08 BarryOCathain

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 avatar Aug 14 '25 16:08 NickM-27

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

giladnah avatar Sep 11 '25 09:09 giladnah

Thanks, I saw some mentions of that but no documentation

NickM-27 avatar Sep 11 '25 11:09 NickM-27

Happy to test or help out as needed here guys.

BarryOCathain avatar Sep 12 '25 11:09 BarryOCathain

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 avatar Sep 16 '25 09:09 BarryOCathain

@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

giladnah avatar Sep 16 '25 11:09 giladnah

@NickM-27 can we reopen this issue to ensure that it doesn't get lost in the ether? Thanks!

BarryOCathain avatar Sep 17 '25 14:09 BarryOCathain

FWIW based on what reading I have been able to do, there should be no changes needed on the Frigate side

NickM-27 avatar Sep 17 '25 14:09 NickM-27