@camera.ui/sdk / sensor / ValveOptions
Interface: ValveOptions ​
Defined in: sensor/valve.ts:71
Options of a valve, on top of the common sensor options.
Extends ​
Properties ​
address? ​
optionaladdress?:string
Defined in: sensor/base.ts:1011
Current address at the source, e.g. a Home Assistant entity id. Display only, may change over time; identity is nativeId.
Inherited from ​
capabilities? ​
optionalcapabilities?: readonlystring[]
Defined in: sensor/base.ts:1019
Capabilities the sensor starts with, such as the last known ones of an adopted sensor.
Inherited from ​
device? ​
optionaldevice?:DeviceInfo
Defined in: sensor/base.ts:1013
Device the sensor belongs to. Sensors of the plugin that report the same DeviceInfo.id form one device.
Inherited from ​
index? ​
optionalindex?:number
Defined in: sensor/valve.ts:73
Position of the valve on its device, from 1, e.g. the zone of an irrigation controller.
nativeId? ​
optionalnativeId?:string
Defined in: sensor/base.ts:999
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.
Inherited from ​
origin? ​
optionalorigin?:string
Defined in: sensor/base.ts:1006
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.
Inherited from ​
primary? ​
optionalprimary?:boolean
Defined in: sensor/base.ts:1015
Whether the sensor is the main sensor of its device, called like the device when it stands alone.
Inherited from ​
propertySpecs? ​
optionalpropertySpecs?:Readonly<Record<string,PropertySpecOverride>>
Defined in: sensor/base.ts:1017
What the device accepts per property, see setPropertySpec().