@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? ​
optionalchoices?: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? ​
optionalmax?:number
Defined in: sensor/meta.ts:73
Highest accepted value, inside the type's range.
maxLength? ​
optionalmaxLength?:number
Defined in: sensor/meta.ts:83
String properties: longest accepted text.
min? ​
optionalmin?:number
Defined in: sensor/meta.ts:71
Lowest accepted value, inside the type's range.
step? ​
optionalstep?:number
Defined in: sensor/meta.ts:75
Accepted increment, commands are rounded to it.
unit? ​
optionalunit?:string
Defined in: sensor/meta.ts:77
Display unit, only for a property whose type sets none.
values? ​
optionalvalues?: (string|number)[]
Defined in: sensor/meta.ts:79
Enum properties: the values the device supports, a subset of the type's.