Skip to content

@camera.ui/sdk / sensor / ChimeControlLike

Interface: ChimeControlLike ​

Defined in: sensor/chime.ts:36

Read-only proxy interface for a chime.

Extends ​

Properties ​

assignedCameraIds ​

readonly assignedCameraIds: readonly string[]

Defined in: sensor/base.ts:335

Ids of the cameras the user assigned the sensor to.

Inherited from ​

SensorLike.assignedCameraIds


assignmentLocked ​

readonly assignmentLocked: boolean

Defined in: sensor/base.ts:337

Whether the sensor is bound to the camera it was added to, so the user cannot assign it elsewhere.

Inherited from ​

SensorLike.assignmentLocked


capabilities ​

readonly capabilities: string[]

Defined in: sensor/base.ts:325

Capabilities the sensor advertises.

Inherited from ​

SensorLike.capabilities


connected ​

readonly connected: boolean

Defined in: sensor/base.ts:327

Whether the sensor is registered and its plugin is connected.

Inherited from ​

SensorLike.connected


deviceInfo? ​

readonly optional deviceInfo?: SensorDevice

Defined in: sensor/base.ts:339

Device the sensor belongs to, undefined without one and for a camera's own sensor.

Inherited from ​

SensorLike.deviceInfo


displayName ​

readonly displayName: string

Defined in: sensor/base.ts:317

Full name shown to the user: inside a device the device name plus shortName, otherwise the plugin's name until the user renames the sensor.

Inherited from ​

SensorLike.displayName


id ​

readonly id: string

Defined in: sensor/base.ts:311

Entity id of the sensor, provisional on a new sensor until registration.

Inherited from ​

SensorLike.id


name ​

readonly name: string

Defined in: sensor/base.ts:315

Name the plugin gave the sensor.

Inherited from ​

SensorLike.name


nativeId? ​

readonly optional nativeId?: string

Defined in: sensor/base.ts:321

Durable identity the plugin supplied, e.g. an upstream device id.

Inherited from ​

SensorLike.nativeId


onAssignmentChanged ​

readonly onAssignmentChanged: Observable<readonly string[]>

Defined in: sensor/base.ts:360

Emits the camera id list whenever the user changes the sensor's camera assignments.

Inherited from ​

SensorLike.onAssignmentChanged


onCapabilitiesChanged ​

readonly onCapabilitiesChanged: Observable<ChimeCapability[]>

Defined in: sensor/chime.ts:39

Emits the full capability list whenever it changes.

Overrides ​

SensorLike.onCapabilitiesChanged


onConnectedChanged ​

readonly onConnectedChanged: Observable<boolean>

Defined in: sensor/base.ts:356

Emits when the connected state changes.

Inherited from ​

SensorLike.onConnectedChanged


onDeviceInfoChanged ​

readonly onDeviceInfoChanged: Observable<SensorDevice | undefined>

Defined in: sensor/base.ts:362

Emits the device whenever the sensor joins or leaves one, or its device, names or main-sensor role change.

Inherited from ​

SensorLike.onDeviceInfoChanged


onPropertyChanged ​

readonly onPropertyChanged: Observable<PropertyChangeOf<ChimeControlProperties>>

Defined in: sensor/chime.ts:38

Emits on every property change.

Overrides ​

SensorLike.onPropertyChanged


onPropertySpecsChanged ​

readonly onPropertySpecsChanged: Observable<Readonly<Record<string, SensorPropertySpec>>>

Defined in: sensor/base.ts:364

Emits the property specs whenever the plugin changes them.

Inherited from ​

SensorLike.onPropertySpecsChanged


onSourceStateChanged ​

readonly onSourceStateChanged: Observable<SensorSourceState | undefined>

Defined in: sensor/base.ts:358

Emits when the source state changes.

Inherited from ​

SensorLike.onSourceStateChanged


pluginId? ​

readonly optional pluginId?: string

Defined in: sensor/base.ts:323

Id of the plugin that owns the sensor, set at registration.

Inherited from ​

SensorLike.pluginId


primary ​

readonly primary: boolean

Defined in: sensor/base.ts:341

Whether the sensor is the main sensor of its device, called like the device when it stands alone.

Inherited from ​

SensorLike.primary


propertySpecs ​

readonly propertySpecs: Readonly<Record<string, SensorPropertySpec>>

Defined in: sensor/base.ts:343

Specs of the properties the plugin narrowed or described, resolved against the type's. A property without an entry follows its type's spec.

Inherited from ​

SensorLike.propertySpecs


shortName ​

readonly shortName: string

Defined in: sensor/base.ts:319

Name inside its device, the same as displayName for a sensor without a device.

Inherited from ​

SensorLike.shortName


sourceState ​

readonly sourceState: SensorSourceState | undefined

Defined in: sensor/base.ts:333

State of the source behind the sensor. Seen from another plugin it is also unavailable while the camera the sensor belongs to is offline. A sensor that is unavailable or removed takes no writes.

Inherited from ​

SensorLike.sourceState


type ​

readonly type: Chime

Defined in: sensor/chime.ts:37

Type of the sensor, fixed per sensor class.

Overrides ​

SensorLike.type

Methods ​

getValue() ​

Call Signature ​

getValue(property): boolean | undefined

Defined in: sensor/chime.ts:41

Get the current value of a sensor property.

Parameters ​
property ​

Active

Returns ​

boolean | undefined

Overrides ​

SensorLike.getValue

Call Signature ​

getValue(property): string | undefined

Defined in: sensor/chime.ts:42

Get the current value of a sensor property.

Parameters ​
property ​

Tone

Returns ​

string | undefined

Overrides ​

SensorLike.getValue

Call Signature ​

getValue(property): number | undefined

Defined in: sensor/chime.ts:43

Get the current value of a sensor property.

Parameters ​
property ​

Volume | Repeat

Returns ​

number | undefined

Overrides ​

SensorLike.getValue

Call Signature ​

getValue(property): unknown

Defined in: sensor/chime.ts:44

Get the current value of a sensor property.

Parameters ​
property ​

string

Returns ​

unknown

Overrides ​

SensorLike.getValue


getValues() ​

getValues(): Readonly<Record<string, unknown>>

Defined in: sensor/base.ts:369

Get a read-only snapshot of all property values.

Returns ​

Readonly<Record<string, unknown>>

Inherited from ​

SensorLike.getValues


hasCapability() ​

hasCapability(capability): boolean

Defined in: sensor/base.ts:378

Whether the sensor advertises the given capability.

Parameters ​

capability ​

string

Returns ​

boolean

Inherited from ​

SensorLike.hasCapability


updateValue() ​

updateValue(property, value): void | Promise<void>

Defined in: sensor/base.ts:376

Generic property write used by cross-process bridges. The owning sensor dispatches it to the matching semantic method, so plugin-side hardware overrides still run. Plugin authors call the semantic methods instead.

Parameters ​

property ​

string

value ​

unknown

Returns ​

void | Promise<void>

Inherited from ​

SensorLike.updateValue