Hi everyone,
I built a web UI to control NAS case fans from the temperature of the hard drives, and to spin idle drives down. It's built around hddfancontrol (desbma) and hd-idle (adelolmo), and TrueNAS SCALE is the primary target (runs as a Custom App via "Install via YAML").
Repo: https://github.com/anto294/hddfancontrol_webui
What it does
- Fans follow the hottest drive, either along a curve or in an "auto" mode (PI controller) that holds a target temperature with the lowest fan speed possible
- Fan groups (each fan follows its own drives) and per-drive limits
- Guided setup, an Identify button to find out which fan is which, and a PWM test that finds each fan's start/stop values
- Safety rules: hot drive, missing temperatures or a control error put the fans at full speed; when the app stops, fans get their previous settings back
- Spin-down with hd-idle. Nothing in the UI wakes a sleeping drive (temps via hddfancontrol, SMART via smartctl -n standby)
- SMART health, scheduled self-tests, drive info (CMR/SMR, NAS/desktop), and a bay map of your case
- History charts (1 hour to 1 year), alerts via ntfy / Gotify / webhook (hot drive, stopped or wearing fan, SMART problems), Prometheus metrics
- Phone layout, light/dark theme, 7 languages
Install on TrueNAS SCALE (24.10+)
Create a dataset, then Apps > Discover Apps > Install via YAML, paste the docker-compose.yml from the repo (point the config volume to your dataset), open https://<truenas>:28462 and use the setup code from the app logs. Full steps are in the README.
A few honest notes
- The container runs privileged (it needs to write PWM files and send ATA commands). The UI is LAN-only by default and I wouldn't expose it to the internet. See the Security section.
- Your board needs PWM fan headers exposed through a Linux hwmon driver (nct6775, it87...).
- So far I've only tested it on one setup: ASRock B550M PG Riptide (nct6798) on TrueNAS SCALE. That's exactly why I'm posting.
What I'd love from you
- Try it and tell me what works and what doesn't
- Hardware reports (board, fan chip, TrueNAS version), working or not. There's a template here: https://github.com/anto294/hddfancontrol_webui/issues/new?template=hardware_report.yml
- Bugs, missing features, UX complaints
It's GPL-3.0 and not an official desbma project. Feedback here or as GitHub issues is very welcome, and a star helps others find it. Thanks!