Skip to content

DeadEnded/ha-pyamdgpuinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs_badge

ha-pyamdgpuinfo

Home Asisstant Custom Component for AMDGPU sensors.
This component is built from the pyamdgpuinfo.

Pass GPU to Container

For this component to work, you need to pass your GPU through to the HA container.
This can be done by adding the following to your docker run command:

--device=/dev/dri:/dev/dri

Or for docker compose:

devices:
  - /dev/dri:/dev/dri

Installation

Manual

Copy this folder to <config_dir>/custom_components/ha-pyamdgpuinfo/.

HACS

Add the following as a Custom Integration Repository in HACS:

https://github.com/DeadEnded/ha-pyamdgpuinfo

image

After you have added the custom repository you should see it as a new repository in the integrations screen:

image

Usage

Once the custom integration has been installed, you can install the component from the Configuration - Integrations screen:
Add a new integration, and search for AMD:

image

Select AMD GPU Info and in the next screen select the sensors you want to add to Home Assistant:

image

Once you have selected the sensors you want, click Submit and in a few seconds the new integration will be ready!

image

Runtime Error

If you get an error like:
RuntimeError: Unknown query failure (an amdgpu call failed). This query may not be supported for this GPU.
then it is likely your GPU does not suppor that sensor.
Simply click the Configure button on the integration, change your sensor selection, and click Submit.
After changing the configuration, click the three dots on the bottom right of the integration, and select Reload to update Home Assistant with the new sensor selection.