Scrypted Documentation / ScryptedDeviceBase
Class: ScryptedDeviceBase
Extends
Constructors
new ScryptedDeviceBase()
new ScryptedDeviceBase(
nativeId
?):ScryptedDeviceBase
Parameters
• nativeId?: string
Returns
Overrides
Properties
nativeId?
readonly
optional
nativeId:string
Inherited from
id
id:
string
Inherited from
info?
optional
info:DeviceInformation
Inherited from
interfaces
interfaces:
string
[]
Inherited from
mixins
mixins:
string
[]
Inherited from
name?
optional
name:string
Inherited from
pluginId
pluginId:
string
Inherited from
providedInterfaces
providedInterfaces:
string
[]
Inherited from
providedName?
optional
providedName:ScryptedDeviceType
Inherited from
providedRoom?
optional
providedRoom:string
Inherited from
providedType?
optional
providedType:ScryptedDeviceType
Inherited from
providerId?
optional
providerId:string
Inherited from
room?
optional
room:string
Inherited from
type?
optional
type:ScryptedDeviceType
Inherited from
scryptedRuntimeArguments?
optional
scryptedRuntimeArguments:ScryptedRuntimeArguments
Inherited from
DeviceBase
.scryptedRuntimeArguments
on?
optional
on:boolean
Inherited from
brightness?
optional
brightness:number
Inherited from
colorTemperature?
optional
colorTemperature:number
Inherited from
rgb?
optional
rgb:ColorRgb
Inherited from
hsv?
optional
hsv:ColorHsv
Inherited from
running?
optional
running:boolean
Inherited from
paused?
optional
paused:boolean
Inherited from
docked?
optional
docked:boolean
Inherited from
temperatureSetting?
optional
temperatureSetting:TemperatureSettingStatus
Inherited from
temperature?
optional
temperature:number
Inherited from
temperatureUnit?
optional
temperatureUnit:TemperatureUnit
Inherited from
humidity?
optional
humidity:number
Inherited from
audioVolumes?
optional
audioVolumes:AudioVolumes
Inherited from
recordingActive?
optional
recordingActive:boolean
Inherited from
ptzCapabilities?
optional
ptzCapabilities:PanTiltZoomCapabilities
Inherited from
lockState?
optional
lockState:LockState
Inherited from
entryOpen?
optional
entryOpen:boolean
|"jammed"
Inherited from
batteryLevel?
optional
batteryLevel:number
Inherited from
chargeState?
optional
chargeState:ChargeState
Inherited from
online?
optional
online:boolean
Inherited from
fromMimeType?
optional
fromMimeType:string
Inherited from
toMimeType?
optional
toMimeType:string
Inherited from
converters?
optional
converters:MediaConverterTypes
[]
Inherited from
binaryState?
optional
binaryState:boolean
Inherited from
tampered?
optional
tampered:TamperState
Inherited from
powerDetected?
optional
powerDetected:boolean
Inherited from
audioDetected?
optional
audioDetected:boolean
Inherited from
motionDetected?
optional
motionDetected:boolean
Inherited from
ambientLight?
optional
ambientLight:number
Inherited from
occupied?
optional
occupied:boolean
Inherited from
flooded?
optional
flooded:boolean
Inherited from
ultraviolet?
optional
ultraviolet:number
Inherited from
luminance?
optional
luminance:number
Inherited from
position?
optional
position:Position
Inherited from
securitySystemState?
optional
securitySystemState:SecuritySystemState
Inherited from
DeviceBase
.securitySystemState
pm10Density?
optional
pm10Density:number
Inherited from
pm25Density?
optional
pm25Density:number
Inherited from
vocDensity?
optional
vocDensity:number
Inherited from
noxDensity?
optional
noxDensity:number
Inherited from
co2ppm?
optional
co2ppm:number
Inherited from
airQuality?
optional
airQuality:AirQuality
Inherited from
airPurifierState?
optional
airPurifierState:AirPurifierState
Inherited from
filterChangeIndication?
optional
filterChangeIndication:boolean
Inherited from
DeviceBase
.filterChangeIndication
filterLifeLevel?
optional
filterLifeLevel:number
Inherited from
humiditySetting?
optional
humiditySetting:HumiditySettingStatus
Inherited from
fan?
optional
fan:FanStatus
Inherited from
applicationInfo?
optional
applicationInfo:LauncherApplicationInfo
Inherited from
systemDevice?
optional
systemDevice:ScryptedSystemDeviceInfo
Inherited from
Accessors
storage
get
storage():Storage
Returns
Storage
log
get
log():Logger
Returns
console
get
console():Console
Returns
Console
Methods
createMediaObject()
createMediaObject(
data
,mimeType
):Promise
<MediaObject
&object
>
Parameters
• data: any
• mimeType: string
Returns
Promise
<MediaObject
& object
>
getMediaObjectConsole()
getMediaObjectConsole(
mediaObject
):undefined
|Console
Parameters
• mediaObject: MediaObject
Returns
undefined
| Console
_lazyLoadDeviceState()
_lazyLoadDeviceState():
void
Returns
void
onDeviceEvent()
onDeviceEvent(
eventInterface
,eventData
):Promise
<void
>
Fire an event for this device.
Parameters
• eventInterface: string
• eventData: any
Returns
Promise
<void
>