Home Asisstant Custom Component for AMDGPU sensors.
This component is built from the pyamdgpuinfo.
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
Copy this folder to <config_dir>/custom_components/ha-pyamdgpuinfo/
.
Add the following as a Custom Integration Repository in HACS:
https://github.com/DeadEnded/ha-pyamdgpuinfo
After you have added the custom repository you should see it as a new repository in the integrations screen:
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
:
Select AMD GPU Info
and in the next screen select the sensors you want to add to Home Assistant:
Once you have selected the sensors you want, click Submit
and in a few seconds the new integration will be ready!
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.