@camera.ui/sdk / sensor / AirQualityInfoLike
Interface: AirQualityInfoLike ​
Defined in: sensor/airQuality.ts:65
Read-only proxy interface for an air quality sensor.
Extends ​
Properties ​
assignedCameraIds ​
readonlyassignedCameraIds: readonlystring[]
Defined in: sensor/base.ts:335
Ids of the cameras the user assigned the sensor to.
Inherited from ​
assignmentLocked ​
readonlyassignmentLocked: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 ​
capabilities ​
readonlycapabilities:string[]
Defined in: sensor/base.ts:325
Capabilities the sensor advertises.
Inherited from ​
connected ​
readonlyconnected:boolean
Defined in: sensor/base.ts:327
Whether the sensor is registered and its plugin is connected.
Inherited from ​
deviceInfo? ​
readonlyoptionaldeviceInfo?:SensorDevice
Defined in: sensor/base.ts:339
Device the sensor belongs to, undefined without one and for a camera's own sensor.
Inherited from ​
displayName ​
readonlydisplayName: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 ​
id ​
readonlyid:string
Defined in: sensor/base.ts:311
Entity id of the sensor, provisional on a new sensor until registration.
Inherited from ​
name ​
readonlyname:string
Defined in: sensor/base.ts:315
Name the plugin gave the sensor.
Inherited from ​
nativeId? ​
readonlyoptionalnativeId?:string
Defined in: sensor/base.ts:321
Durable identity the plugin supplied, e.g. an upstream device id.
Inherited from ​
onAssignmentChanged ​
readonlyonAssignmentChanged:Observable<readonlystring[]>
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 ​
readonlyonCapabilitiesChanged:Observable<AirQualityCapability[]>
Defined in: sensor/airQuality.ts:68
Emits the full capability list whenever it changes.
Overrides ​
SensorLike.onCapabilitiesChanged
onConnectedChanged ​
readonlyonConnectedChanged:Observable<boolean>
Defined in: sensor/base.ts:356
Emits when the connected state changes.
Inherited from ​
onDeviceInfoChanged ​
readonlyonDeviceInfoChanged: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 ​
readonlyonPropertyChanged:Observable<PropertyChangeOf<AirQualityInfoProperties>>
Defined in: sensor/airQuality.ts:67
Emits on every property change.
Overrides ​
onPropertySpecsChanged ​
readonlyonPropertySpecsChanged: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 ​
readonlyonSourceStateChanged:Observable<SensorSourceState|undefined>
Defined in: sensor/base.ts:358
Emits when the source state changes.
Inherited from ​
SensorLike.onSourceStateChanged
pluginId? ​
readonlyoptionalpluginId?:string
Defined in: sensor/base.ts:323
Id of the plugin that owns the sensor, set at registration.
Inherited from ​
primary ​
readonlyprimary: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 ​
propertySpecs ​
readonlypropertySpecs: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 ​
shortName ​
readonlyshortName:string
Defined in: sensor/base.ts:319
Name inside its device, the same as displayName for a sensor without a device.
Inherited from ​
sourceState ​
readonlysourceState: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 ​
type ​
readonlytype:AirQuality
Defined in: sensor/airQuality.ts:66
Type of the sensor, fixed per sensor class.
Overrides ​
Methods ​
getValue() ​
Call Signature ​
getValue(
property):""|AirQualityLevel|undefined
Defined in: sensor/airQuality.ts:70
Get the current value of a sensor property.
Parameters ​
property ​
Returns ​
"" | AirQualityLevel | undefined
Overrides ​
Call Signature ​
getValue(
property):number|undefined
Defined in: sensor/airQuality.ts:71
Get the current value of a sensor property.
Parameters ​
property ​
Returns ​
number | undefined
Overrides ​
SensorLike.getValue
Call Signature ​
getValue(
property):unknown
Defined in: sensor/airQuality.ts:72
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 ​
hasCapability() ​
hasCapability(
capability):boolean
Defined in: sensor/base.ts:378
Whether the sensor advertises the given capability.
Parameters ​
capability ​
string
Returns ​
boolean
Inherited from ​
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>