Skip to content

@camera.ui/sdk / sensor / PropertySpecOverride

Interface: PropertySpecOverride ​

Defined in: sensor/meta.ts:69

What a plugin narrows or describes on one property of its sensor, on top of the type's spec: a thermostat's range, a chime's tones, an alarm without night mode. The host rejects a command outside it before it reaches the plugin, readings the plugin reports are not checked.

Properties ​

choices? ​

optional choices?: SensorPropertyChoice[]

Defined in: sensor/meta.ts:81

Values the device offers with their names at the device, for a property without a fixed enum.


max? ​

optional max?: number

Defined in: sensor/meta.ts:73

Highest accepted value, inside the type's range.


maxLength? ​

optional maxLength?: number

Defined in: sensor/meta.ts:83

String properties: longest accepted text.


min? ​

optional min?: number

Defined in: sensor/meta.ts:71

Lowest accepted value, inside the type's range.


step? ​

optional step?: number

Defined in: sensor/meta.ts:75

Accepted increment, commands are rounded to it.


unit? ​

optional unit?: string

Defined in: sensor/meta.ts:77

Display unit, only for a property whose type sets none.


values? ​

optional values?: (string | number)[]

Defined in: sensor/meta.ts:79

Enum properties: the values the device supports, a subset of the type's.