Skip to main content

slider

Add range sliders for numeric value input on the dashboard.

Overview

The slider node adds interactive range sliders to your dashboard. Perfect for adjusting values like brightness, temperature setpoints, speed, or any numeric value within a defined range.

Range
Min/Max
Step
Increment
Live
Updates
2-Way
Binding

Properties

Property Type Default Description
group string - Dashboard group
label string "Slider" Label text
min number 0 Minimum value
max number 100 Maximum value
step number 1 Step increment
continuous boolean false Output while dragging
showValue boolean true Display current value

Slider Preview

Example: LED Brightness Control

Control PWM duty cycle for LED brightness.

// Slider node configuration:
{
  "label": "LED Brightness",
  "min": 0,
  "max": 100,
  "step": 5,
  "topic": "led/brightness"
}

// Function node: Convert to PWM (0-255)
msg.payload = Math.round(msg.payload * 2.55);
return msg;

// Connect to PWM node for hardware control

Example: Thermostat Setpoint

Set target temperature with 0.5°C precision.

// Slider node configuration:
{
  "label": "Target Temperature",
  "min": 15,
  "max": 30,
  "step": 0.5,
  "topic": "thermostat/setpoint"
}

// Output: 22.5 (when slider moved to 22.5°C)

// Use with change node to add units:
msg.payload = {
  value: msg.payload,
  unit: "°C"
};

Output Modes

On Release (Default)

Only sends value when user releases slider

{ "continuous": false }

// User drags 0 → 50 → 75
// Output: 75 (only final value)

Continuous

Sends values while dragging (throttled)

{ "continuous": true }

// User drags 0 → 50 → 75
// Output: 0, 25, 50, 75 (multiple)

Dynamic Updates

// Update slider position from external source
msg.payload = 75;
// Slider moves to 75

// Dynamically change range
msg.ui_control = {
  "min": 10,
  "max": 50
};

// Disable slider
msg.ui_control = { "disabled": true };

// Change step
msg.ui_control = { "step": 10 };

Related Nodes