TerraMaster NAS smart home integration, free and open source

Monitor your TerraMaster NAS locally: load, temperatures, drives, volumes and fan.
Monitor your TerraMaster NAS from Gladys: CPU and memory load, temperatures, fan, drive health and volume usage. The integration talks to the NAS over your home network, through the same web interface as TOS: no cloud, no TerraMaster account. It follows the "TerraMaster NAS" integration of Home Assistant.
Requirements
- A TerraMaster NAS running TOS 6 or TOS 7, reachable from Gladys on the local network.
- A TOS account. Any account reads the sensors; changing the fan mode needs an administrator account.
Installation
- In Gladys, open Integrations, then the external integrations store.
- Search for TerraMaster NAS and click Install.
- Wait for the container to start: the integration shows up in the list.
Configuration
Open the Configuration tab of the integration:
- NAS address: the IP address or host name you use to open TOS in a browser (e.g.
192.168.1.50). - Port of the TOS interface:
8181unless you changed it in TOS (HTTP port). - TOS user and Password: a TOS account. The password stays in Gladys and is never written to the logs.
- Refresh interval: how often the NAS is read, in seconds (60 by default, 30 minimum).
- Overheating protection and Drive overheating threshold: when the fan is in a manual mode and the hottest drive reaches the threshold (55 °C by default), the integration puts the fan back to automatic, like the Home Assistant integration does.
- Volume almost full at: the usage (%) that fires the "Volume almost full" trigger (90 % by default).
Save, then click Test the connection: the integration logs in and shows the model of the NAS.
Devices
Open the Discover tab and add the devices:
- The NAS: CPU usage, memory usage, CPU temperature, system temperature, hottest drive temperature, fan speed (RPM), fan mode (automatic, low, medium, full speed — controllable from Gladys), uptime (days) and TOS version.
- One device per drive: temperature, problem (on when TOS reports the drive faulty) and power-on hours.
- One device per volume: usage (%), used space and free space (GB).
A drive is identified by its serial number: moved to another bay, it keeps its history.
Scenes and dashboards
Scene triggers:
- Drive problem: TOS reports a problem on a drive that was healthy (variables: drive, model, TOS status code).
- Drive overheating: a drive reaches the overheating threshold (variables: drive, temperature, threshold). It fires again only after the drive cooled down by 3 °C.
- Volume almost full: a volume goes over the configured usage (variables: volume, usage, free space).
- NAS unreachable / NAS back online: the NAS stops answering (two failed reads in a row), then answers again.
Each trigger can be filtered on one device.
Scene actions:
- Set the NAS fan mode: automatic, low, medium or full speed (administrator account).
- Read the NAS now: refreshes every value and gives the next actions a summary: NAS reachable, drives with a problem, CPU and memory usage, hottest drive, fullest volume, fan mode.
Dashboard widget TerraMaster NAS: live tiles for the CPU, the memory, the CPU temperature and the hottest drive, a status list (connection, fan, drives, volumes, TOS version) and buttons to refresh the NAS and switch the fan to automatic or full speed.
Troubleshooting
- "The NAS does not answer": check the address and the port, and that the TOS web interface opens from a computer of the same network.
- "The NAS refused the user or the password": check the account in TOS.
- The fan mode does not change: the account is not an administrator.
- TOS has no public API: the integration speaks the protocol of the TOS web interface, which a firmware update may change. Report it in an issue if values stop updating after a TOS update.
Help
A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.
Configuration settings
These are the settings TerraMaster NAS asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Connect your NAS | section | No | The integration reads your TerraMaster NAS (TOS 6 or 7) over the home network, through its web interface: no cloud, no TerraMaster account. Enter the address you use to open TOS in a browser and a TOS account. Any account reads the sensors; changing the fan mode needs an administrator. |
| NAS address | string | Yes | IP address or host name of the NAS on your network. |
| Port of the TOS interface | number | No | HTTP port of the TOS web interface (8181 by default). |
| TOS user | string | Yes | |
| Password | secret | Yes | |
| Refresh interval (s) | number | No | How often the NAS is read, in seconds (30 minimum). |
| Overheating protection | boolean | No | Put the fan back to automatic when the hottest drive reaches the threshold below. |
| Drive overheating threshold (°C) | number | No | Used by the overheating protection and the "Drive overheating" scene trigger. |
| Volume almost full at (%) | number | No | Usage that fires the "Volume almost full" scene trigger. |
How to install TerraMaster NAS in Gladys
- In Gladys, open Integrations: TerraMaster NAS appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/prohand/gladys-terramaster-nas:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/prohand/gladys-terramaster-nas.
TerraMaster NAS requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
TerraMaster NAS is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by prohand, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation