Skip to content

@camera.ui/sdk / sensor / SensorOptions

Interface: SensorOptions

Defined in: sensor/base.ts:690

Options accepted by every sensor constructor.

Properties

exposed?

optional exposed?: boolean

Defined in: sensor/base.ts:709

Initial export state when the host creates the sensor entity. Later user changes win; re-registering never overwrites them.


hidden?

optional hidden?: boolean

Defined in: sensor/base.ts:714

Initial hidden state when the host creates the sensor entity. Later user changes win; re-registering never overwrites them.


nativeId?

optional nativeId?: string

Defined in: sensor/base.ts:697

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:704

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.