Gauge
A radial gauge for values within a known range. Warning and alarm zones are drawn inside the arc, and the arc changes color when the value enters them.
Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
label |
string | Gauge |
Title |
unit |
string | Unit below the value | |
min / max |
number | 0 / 100 |
Range of the arc |
decimals |
number | 1 |
Decimal places |
warn |
number | Start of the amber zone | |
alarm |
number | Start of the red zone |
Recommended size: 3 × 3.
msg.payload = 27.5;The payload is a finite number or a numeric string. Anything else (null, "", true, "abc", Infinity) clears the value, so the gauge shows no value instead of 0.
Values outside the range are clamped on the arc but displayed as they are.