Scrypted Documentation / MixinDeviceBase
Class: MixinDeviceBase<T>
Extends
Type Parameters
• T
Implements
Constructors
new MixinDeviceBase()
new MixinDeviceBase<
T>(options):MixinDeviceBase<T>
Parameters
• options: MixinDeviceOptions<T>
Returns
Overrides
Properties
mixinProviderNativeId
mixinProviderNativeId:
ScryptedNativeId
mixinDevice
mixinDevice:
T
mixinDeviceInterfaces
mixinDeviceInterfaces:
ScryptedInterface[]
id
id:
string
Implementation of
Inherited from
info?
optionalinfo:DeviceInformation
Implementation of
Inherited from
interfaces
interfaces:
string[]
Implementation of
Inherited from
mixins
mixins:
string[]
Implementation of
Inherited from
name?
optionalname:string
Implementation of
Inherited from
nativeId?
optionalnativeId:string
Implementation of
Inherited from
pluginId
pluginId:
string
Implementation of
Inherited from
providedInterfaces
providedInterfaces:
string[]
Implementation of
DeviceState.providedInterfaces
Inherited from
providedName?
optionalprovidedName:string
Implementation of
Inherited from
providedRoom?
optionalprovidedRoom:string
Implementation of
Inherited from
providedType?
optionalprovidedType:string
Implementation of
Inherited from
providerId?
optionalproviderId:string
Implementation of
Inherited from
room?
optionalroom:string
Implementation of
Inherited from
type?
optionaltype:string
Implementation of
Inherited from
scryptedRuntimeArguments?
optionalscryptedRuntimeArguments:ScryptedRuntimeArguments
Implementation of
DeviceState.scryptedRuntimeArguments
Inherited from
DeviceBase.scryptedRuntimeArguments
on?
optionalon:boolean
Implementation of
Inherited from
brightness?
optionalbrightness:number
Implementation of
Inherited from
colorTemperature?
optionalcolorTemperature:number
Implementation of
Inherited from
rgb?
optionalrgb:ColorRgb
Implementation of
Inherited from
hsv?
optionalhsv:ColorHsv
Implementation of
Inherited from
buttons?
optionalbuttons:string[]
Implementation of
Inherited from
sensors
sensors:
Record<string,Sensor>
Implementation of
Inherited from
running?
optionalrunning:boolean
Implementation of
Inherited from
paused?
optionalpaused:boolean
Implementation of
Inherited from
docked?
optionaldocked:boolean
Implementation of
Inherited from
temperatureSetting?
optionaltemperatureSetting:TemperatureSettingStatus
Implementation of
DeviceState.temperatureSetting
Inherited from
temperature?
optionaltemperature:number
Implementation of
Inherited from
temperatureUnit?
optionaltemperatureUnit:TemperatureUnit
Implementation of
Inherited from
humidity?
optionalhumidity:number
Implementation of
Inherited from
audioVolumes?
optionalaudioVolumes:AudioVolumes
Implementation of
Inherited from
recordingActive?
optionalrecordingActive:boolean
Implementation of
Inherited from
ptzCapabilities?
optionalptzCapabilities:PanTiltZoomCapabilities
Implementation of
Inherited from
lockState?
optionallockState:LockState
Implementation of
Inherited from
entryOpen?
optionalentryOpen:boolean|"jammed"
Implementation of
Inherited from
batteryLevel?
optionalbatteryLevel:number
Implementation of
Inherited from
chargeState?
optionalchargeState:ChargeState
Implementation of
Inherited from
online?
optionalonline:boolean
Implementation of
Inherited from
fromMimeType?
optionalfromMimeType:string
Implementation of
Inherited from
toMimeType?
optionaltoMimeType:string
Implementation of
Inherited from
converters?
optionalconverters:MediaConverterTypes[]
Implementation of
Inherited from
binaryState?
optionalbinaryState:boolean
Implementation of
Inherited from
tampered?
optionaltampered:TamperState
Implementation of
Inherited from
sleeping?
optionalsleeping:boolean
Implementation of
Inherited from
powerDetected?
optionalpowerDetected:boolean
Implementation of
Inherited from
audioDetected?
optionalaudioDetected:boolean
Implementation of
Inherited from
motionDetected?
optionalmotionDetected:boolean
Implementation of
Inherited from
ambientLight?
optionalambientLight:number
Implementation of
Inherited from
occupied?
optionaloccupied:boolean
Implementation of
Inherited from
flooded?
optionalflooded:boolean
Implementation of
Inherited from
ultraviolet?
optionalultraviolet:number
Implementation of
Inherited from
luminance?
optionalluminance:number
Implementation of
Inherited from
position?
optionalposition:Position
Implementation of
Inherited from
securitySystemState?
optionalsecuritySystemState:SecuritySystemState
Implementation of
DeviceState.securitySystemState
Inherited from
DeviceBase.securitySystemState
pm10Density?
optionalpm10Density:number
Implementation of
Inherited from
pm25Density?
optionalpm25Density:number
Implementation of
Inherited from
vocDensity?
optionalvocDensity:number
Implementation of
Inherited from
noxDensity?
optionalnoxDensity:number
Implementation of
Inherited from
co2ppm?
optionalco2ppm:number
Implementation of
Inherited from
airQuality?
optionalairQuality:AirQuality
Implementation of
Inherited from
airPurifierState?
optionalairPurifierState:AirPurifierState
Implementation of
Inherited from
filterChangeIndication?
optionalfilterChangeIndication:boolean
Implementation of
DeviceState.filterChangeIndication
Inherited from
DeviceBase.filterChangeIndication
filterLifeLevel?
optionalfilterLifeLevel:number
Implementation of
Inherited from
humiditySetting?
optionalhumiditySetting:HumiditySettingStatus
Implementation of
Inherited from
fan?
optionalfan:FanStatus
Implementation of
Inherited from
applicationInfo?
optionalapplicationInfo:LauncherApplicationInfo
Implementation of
Inherited from
systemDevice?
optionalsystemDevice:ScryptedSystemDeviceInfo
Implementation of
Inherited from
Accessors
storage
getstorage():Storage
Returns
Storage
console
getconsole():Console
Returns
Console
Methods
createMediaObject()
createMediaObject(
data,mimeType):Promise<MediaObject&object>
Parameters
• data: any
• mimeType: string
Returns
Promise<MediaObject & object>
getMediaObjectConsole()
getMediaObjectConsole(
mediaObject):Console
Parameters
• mediaObject: MediaObject
Returns
Console
onDeviceEvent()
onDeviceEvent(
eventInterface,eventData):Promise<void>
Fire an event for this device.
Parameters
• eventInterface: string
• eventData: any
Returns
Promise<void>
_lazyLoadDeviceState()
_lazyLoadDeviceState():
void
Returns
void
manageListener()
manageListener(
listener):void
Parameters
• listener: EventListenerRegister
Returns
void
release()
release():
void
Returns
void
