blakeblackshear / frigate-hass-addons

Frigate hass.io addons
MIT License
221 stars 121 forks source link

coral TPU not detected after upgrade to v0.14.0 #183

Open Matthiasfranck opened 3 weeks ago

Matthiasfranck commented 3 weeks ago

I use frigate full access in HAS. After upgrading from 0.13.2 to 0.14.0, my coral edge TPU is not detected anymore.

The issue looks very similar to https://github.com/blakeblackshear/frigate/issues/3890

I downgraded frigate using a HAS backup and everything started to work as normal.

I want to share this as people are probably not yet aware of the issue.

NickM-27 commented 3 weeks ago

nothing changed in terms of how the coral is interacted with, another user posted something similar and it was because they forgot to disable protected mode and they were using the full access addon

Matthiasfranck commented 3 weeks ago

I was also running without protected mode.

StefanTT commented 3 weeks ago

I am also fighting with this problem.

Home-Assistant with the Frigate addon freshly installed, version 0.14.1. Disabled protected mode.

The detector configuration is like this:

detectors:
  coral:
    type: edgetpu
    device: usb

TPU is not detected and Frigate stops.

Running frigate on the same machine in an LXC container worked for months now, so the TPU is reachable and working. I stopped the frigate LXC container before testing.

StefanTT commented 3 weeks ago

I found the issue. I read somewhere that the Edge TPU is very picky about the power supply. So I unplugged the external USB devices (bluetooth and thread adapter) and now Frigate finds the TPU.

@Matthiasfranck maybe that's your issue too?

Matthiasfranck commented 3 weeks ago

I have a zwave and zigbee dongle attached. I can however use a powered usb hub to plug the tpu in.

Anyway it is still strange that it only happens when updating to newer version.

StefanTT commented 2 weeks ago

The update might have changed how Frigate interacts with the TPU on startup, drawing a bit more power now on start. I did some testing. All works fine when I unplug bluetooth and thread on boot and plug them in later. I will use a powered hub for the two sticks as the TPU is inside the server.

Matthiasfranck commented 2 weeks ago

@NickM-27 wrote

nothing changed in terms of how the coral is interacted with

But ok, I will test it later again. I have an usb coral, so only thing I can do is use powered USB hub and add my zigbee, zwave and coral to it.