Skip to content

@camera.ui/sdk / sensor / SensorOptions

Interface: SensorOptions ​

Defined in: sensor/base.ts:686

Options accepted by every sensor constructor.

Properties ​

address? ​

optional address?: string

Defined in: sensor/base.ts:705

Current address at the source, e.g. a Home Assistant entity id. Display only, may change over time; identity is nativeId.


nativeId? ​

optional nativeId?: string

Defined in: sensor/base.ts:693

Durable identity supplied by the plugin, e.g. an upstream device id. The host reconciles the sensor across restarts by (pluginId, nativeId); without it, identity falls back to (type, name) and a rename creates a new sensor.


origin? ​

optional origin?: string

Defined in: sensor/base.ts:700

Source system the sensor was imported from, e.g. 'homeassistant'. The host stores it on the sensor entity, and export bridges targeting that system skip the sensor so an import can never be exported back to where it came from.