hd-dial
on changeA 270° dial you drag to set a numeric capability (target temperature): the knob is the value, an optional dot shows a second value (the room), and the value sits large in the middle. A value changed from elsewhere (the − and + buttons, the Homey, another screen) springs into place with one small overshoot; under your finger it follows exactly. Reduced motion and e-ink: it moves at once.
| Attribute | What it is |
|---|---|
bind | The capability it is bound to, e.g. {{ settings.light.cap.dim }} (the whole capability, no .value): it shows its value, takes min, max and step from it, and sends changes back (shown at once, sprung back if refused, range checked). A device that is unavailable shows its last value, disabled. |
value | The explicit form instead of bind: what it shows, e.g. {{ cap.target_temperature.value }} (or a live capability, followed); a change only goes to data-hd-on-change, which decides what it does. Without a handler it can’t be changed. |
min | Minimum; defaults to the capability’s. |
max | Maximum; defaults to the capability’s. |
step | Step; defaults to the capability’s. |
marker | A second value shown as a dot, e.g. the room temperature. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}. |
label | Small text above the value, e.g. “Heat to”. |
caption | Small text below the value, e.g. “Now 21.0°”. |
unit | Shown after the value, e.g. °. |
decimals | Digits after the decimal point.Default 1. |
tone | Colours of the arc: heating runs cool to warm, cooling warm to cool.One of heat, cool, neutral. Default heat. |
<hd-dial bind="{{ cap.target_temperature }}" marker="{{ cap.measure_temperature }}" label="Heat to" caption="Now {{ cap.measure_temperature.value | temp: 1 }}" unit="°"></hd-dial>