The Unraid API integration allows users to integrate their Unraid server using Unraids local GraphQL API.
-
Go to the HACS -> Custom Repositories and add this repository as a Custom Repository See HACS Documentation for help
-
Click the button bellow and click 'Download' to install the Integration:
-
Restart Home Assistant.
- Unraid v7.2 or later
- Create an API Key with this Template:
?name=Homeassistant&scopes=disk%2Binfo%2Bservers%2Bshare%3Aread_any%2Carray%2Bdocker%3Aread_any%2Bupdate_any&description=Unraid+API+Homeassistant+integrationor set permissions manually:
-
Read (All):
- Info
- Servers
- Array
- Disk
- Share
- Docker
-
Update (All):
- Array
- Docker
- Click the button below or use "Add Integration" in Home Assistant and select "Unraid".
- Enter the URL of the Unraid WebUI including "http(s)://" and the port when using a nonstandard port. You must use https when "Use SSL/TLS:" is set to "Yes" or "Strict" in the Unraid Management access settings.
- Enter your API Key
- Select which aspects of your Server to monitor
- Unraid WebUI: URL of the Unraid WebUI (including "http(s)://")
- API Key: API Key for the Unraid API
- Monitor Shares: Create Entities for each Network Share
- Monitor Disks: Create Entities for each Disk
- Monitor Docker Containers: Docker mode
Each monitored container must have a unique name. By default the container name is used, but can be overwritten by setting the io.home-assistant.unraid_api.name label on the container.
Docker modes:
- Disabled: Docker monitoring is disabled
- All (Ignore labels): All container are monitored, regardless of their label.
- Enabled with Label only: Only Container with
io.home-assistant.unraid_api.name=trueare monitored - All except disabled with Label: All container are monitored, Container with
io.home-assistant.unraid_api.name=falseare excluded
All supported Docker Labels:
io.home-assistant.unraid_api.monitor: Enabled or disable monitoring for this container.io.home-assistant.unraid_api.name: Overwrite container namenet.unraid.docker.webui: WebUI Url in Device pageorg.opencontainers.image.version: Software version shown in Device page and as an extra state attribute
-
Sensors:
- Array: State, Usage, Free space, Used space
- RAM: Usage, Free, Used
- CPU: Utilization, Temperature, Power
- Parity check: Status, Progress, Speed
- Disks: Status, Temperature, Usage, Free space, Used space, Spinning
- Shares: Free space
- UPS: Status, Level, Runtime, Health, Load, Input voltage, Output voltage
- Docker Container: State
-
Buttons:
- Parity check: Start, Stop, Pause, Resume
-
Switches:
- Docker Container: Start/Stop
This integration follows standard integration removal, no extra steps are required.