gladys-host-monitoring â #7 « Missing % in widget »
Cause: The issue comes from the Gladys interface, not the integration. When a gauge is linked to a feature (device_feature), Gladys does not display any unit. It ignores the unit passed to it.
Fix: The 3 gauges (CPU, memory, disk) now display the value directly, with %.
Trade-off: These gauges no longer update in real-time. They move with each integration measurement, as the widget is requested again after each measurement. Temperature, free space, and the graph remain in real-time.
Tests, README, CLAUDE.md, and docs/en + docs/fr updated.
What I can change: Gladys draws the widget (layout, text size). The integration only sends the values, so I shortened the sent text.
1. Text touching the gauge arc (mobile)
The gauges now display whole percentages: 45 % instead of 44.9 %.
The text is shorter and fits better in the arc.
2. Free disk space truncated (432.3 âŠ)
Before, once the device was created, Gladys displayed the value (432.3 Go), which was too long when 5 boxes are on a line.
Now, the integration always sends the value itself, with a maximum of 3 digits:
less than 10 GB â 9.4 GB
from 10 to 999 GB â 432 GB
1000 GB and more â 1.8 TB
It updates with each measurement, like the gauges.
The displayed unit is GB / TB, as Gladys already displayed it (Go / To in French).
If 432 GB is still truncated on large screens: I can move âFree disk spaceâ in the status list, at the bottom of the widget. Then there would be 4 boxes: 2Ă2 on mobile, 4 on a line on PC.
Since version 2.1.1, the Host Health widget chart also displays the CPU temperature curve, in addition to CPU, memory, and disk.
Some details:
The curve only appears if a temperature sensor has been found. If the device has no sensor, the chart remains unchanged.
Nothing to do on your end except update the integration: the temperature history is already recorded, so the curve displays directly, without recreating the device.
Since percentages and °C are on the same chart, the title simply becomes « History ».
Donât hesitate to let me know if you like the result