Skip to content

@camera.ui/sdk / manager / DiscoveredSensor

Interface: DiscoveredSensor ​

Defined in: manager/index.ts:464

A sensor a plugin can offer for adoption (see SensorDiscoveryProvider).

Properties ​

address? ​

optional address?: string

Defined in: manager/index.ts:475

Current address at the source (e.g. a Home Assistant entity id), shown next to the name.


id ​

id: string

Defined in: manager/index.ts:473

The source's stable identity for this sensor, never its address: a Home Assistant entity-registry id, an MQTT unique_id, a vendor device id. It becomes the sensor's nativeId, and a sensor keeps its record, assignments and history for as long as this id stays the same. Using a mutable address (a Home Assistant entity_id) here turns every rename at the source into an orphan plus a new sensor.


manufacturer? ​

optional manufacturer?: string

Defined in: manager/index.ts:483

Manufacturer label (optional).


model? ​

optional model?: string

Defined in: manager/index.ts:485

Model label (optional).


name ​

name: string

Defined in: manager/index.ts:477

Display name shown in the UI adoption list.


room? ​

optional room?: string

Defined in: manager/index.ts:481

Room or area label from the source system (optional).


type ​

type: SensorType

Defined in: manager/index.ts:479

Sensor type the plugin would register the sensor as.