Skip to content

Function: useLight()

useLight(device, name, element): IPState | undefined

Subscribe to one status light. See useNumber.

Parameters

device

string

The device name.

name

string

The property name.

element

string

The element name.

Returns

IPState | undefined

The light's state, or undefined when absent or of another kind.