Skip to content

@camera.ui/sdk / sensor / SensorPropertySpec

Interface: SensorPropertySpec ​

Defined in: sensor/meta.ts:30

Per-property value description: what type a property carries, its possible enum values or numeric range, and whether it is a command or an internal detail. Consumers (automation pickers, value editors) render from this instead of hand-maintained tables.

Properties ​

internal? ​

readonly optional internal?: boolean

Defined in: sensor/meta.ts:46

Not an observable state: hidden from trigger/condition pickers.


keys? ​

readonly optional keys?: readonly string[]

Defined in: sensor/meta.ts:36

Object properties: scalar member keys, exposed as value-path variables.


max? ​

readonly optional max?: number

Defined in: sensor/meta.ts:40

Numeric properties: highest accepted value.


min? ​

readonly optional min?: number

Defined in: sensor/meta.ts:38

Numeric properties: lowest accepted value.


type ​

readonly type: SensorPropertyValueType

Defined in: sensor/meta.ts:32

Runtime type of the value.


unit? ​

readonly optional unit?: string

Defined in: sensor/meta.ts:42

Display unit of the value, e.g. % or °C.


values? ​

readonly optional values?: Readonly<Record<string, string | number>>

Defined in: sensor/meta.ts:34

Enum properties: value-name → wire value. Names double as i18n key stems.


writable? ​

readonly optional writable?: boolean

Defined in: sensor/meta.ts:44

Accepts external writes (commands, target states, virtual sensor state).