Skip to main content

Light — light v1

A controllable light load — switched, dimmed, tunable, or full colour.

Capabilities

Declared in the driver manifest under [[proxy]] capabilities. Anything not declared takes the default below.

CapabilityTypeDefaultMeaning
cct_maxu326500
cct_minu322700
dimmerboolfalseSupports levels between off and on
has_button_eventsboolfalsePhysical keypad on the load reports presses
load_group_supportboolfalseCan join a synchronised group at the device level
max_on_levelu8100
min_on_levelu81Lowest level the load will hold without flicker
ramp_rate_max_msu320
supports_cctboolfalseTunable correlated colour temperature
supports_colorboolfalseFull hue/saturation colour
supports_rampboolfalseHonours a ramp time on level changes
supports_targetboolfalseCan be told to ramp toward a level over time and report progress

Commands

off

No parameters.

on

No parameters.

ramp_start

Only present when dimmer is declared true.

Begin ramping in a direction until stopped — for held keypad buttons

ParameterTypeNotes
directionone of up · down

ramp_stop

Only present when dimmer is declared true.

No parameters.

set_cct

Only present when supports_cct is declared true.

ParameterTypeNotes
kelvinu32 1000–10000
ramp_msu32 (optional)

set_color

Only present when supports_color is declared true.

ParameterTypeNotes
huef32 0–360
ramp_msu32 (optional)
satf32 0–100

set_level

Only present when dimmer is declared true.

Set brightness. 0 is off.

ParameterTypeNotes
levelu8 0–100
ramp_msu32 (optional)

toggle

No parameters.

Notifications

button_action

Only present when has_button_events is declared true.

ParameterTypeNotes
actionone of press · release · click · double · hold
buttonstring

cct_changed

Only present when supports_cct is declared true.

ParameterTypeNotes
kelvinu32

color_changed

Only present when supports_color is declared true.

ParameterTypeNotes
huef32
satf32

level_changed

Settled at a level

ParameterTypeNotes
levelu8 0–100

level_changing

Mid-ramp progress. Rate-limited by the driver; core does not persist these.

ParameterTypeNotes
levelu8 0–100

online_changed

ParameterTypeNotes
onlinebool

State

Last-known values core keeps for a binding of this proxy.

KeyTypeMeaning
huef32
kelvinu32
levelu8
onbool
onlinebool
satf32