question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose Edge TPU temperature

See original GitHub issue

Describe the request

Would it be possible to expose the temperature of the Edge TPU devices in frigate API? And then expose at as an entity in the Home Assistant integration?

I did not find it in the libedgetpu API, but it is available from sysfs in Millidegree Celsius:

root@hassio:~# docker exec -ti addon_ccab4aaf_frigate sh -c "cat /sys/class/apex/apex_*/temp"
66050
72300

Version of frigate N/A

Config file Include your full config file wrapped in triple back ticks.

detectors:
  coral0:
    type: edgetpu
    device: pci:0
  coral1:
    type: edgetpu
    device: pci:1

Frigate container logs N/A

Frigate stats N/A

FFprobe from your camera N/A

Screenshots N/A

Computer Hardware

  • OS: Debian 10 amd64
  • Install method: Home Assistant addon with supervisor
  • Virtualization: KVM/Qemu
  • Coral Version: Dual Edge TPU m.2 PCIe
  • Network Setup: Wired

Camera Info: N/A

Additional context N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
PrplHaz4commented, Jul 26, 2021

I think the original request is still valid, as the sysfs node is not accessible to hass when it’s running in a separate container/host from frigate (and does not seem very portable in general).

3reactions
ardysusilocommented, Jul 25, 2021

Can you try adding this line in configuration.yaml?

sensor:
  - platform: command_line
    name: Coral PCI Temperature
    command: "cat /sys/class/apex/apex_0/temp"
    unit_of_measurement: "°C"
    value_template: "{{ value | multiply(0.001) | round(1) }}" 
Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage the PCIe module temperature
Learn how to read the temperature from the Edge TPU and configure frequency scaling when using the Edge TPU over PCIe interface.
Read more >
Google Coral Edge TPU & Intel NCS2 Temperature Test
Learn how Intel Neural Compute Stick 2 and Google Coral Edge TPU ... on a customized image, which took brought the temperature up...
Read more >
M.2 Accelerator with Dual Edge TPU datasheet
Operating temp: -40 to +85 °C. Description. The Coral M.2 Accelerator with Dual Edge TPU is an M.2 module (E-key) that includes two...
Read more >
Accelerator Module datasheet
This is the first line that goes high at a specified Edge TPU junction temperature. Recommended for thermal management. Has internal 100k pull-down....
Read more >
TPU Device temperature · Issue #102 · google-coral/edgetpu
Is there a way to know the temperature of the USB Accelerator?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found