Sure! When you use this code:
- Code: Select all
dev = indigo.devices[1188813242]
You're actually getting a copy of the entire Indigo device object. You can get a lot of information about the object simply by sending it to print.
- Code: Select all
indigo.server.log(str(dev))
gives you all this:
- Code: Select all
Script address : 14167012
batteryLevel : None
buttonConfiguredCount : 0
buttonGroupCount : 0
configured : True
description : Opener Device auto-created by MyQ plugin from gateway information
deviceTypeId : myqOpener
displayStateId : onOffState
displayStateImageSel : Locked
displayStateValRaw : True
displayStateValUi : locked
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 1921185512
globalProps : MetaProps : (dict)
com.flyingdiver.indigoplugin.myq : (dict)
IsLockSubType : true (bool)
address : 14167012 (integer)
devVersCount : 1 (integer)
id : 1188813242
lastChanged : 2019-03-31 20:28:18
lastSuccessfulComm : 2019-03-31 20:28:18
ledStates : []
model : MyQ Door Opener
name : Garage Door Opener (SNIP)
onState : True
ownerProps : com.flyingdiver.indigoplugin.myq : (dict)
IsLockSubType : true (bool)
address : 14167012 (integer)
devVersCount : 1 (integer)
pluginId : com.flyingdiver.indigoplugin.myq
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
doorStatus : Closed (string)
doorStatus.Closed : true (bool)
doorStatus.Closing : false (bool)
doorStatus.Disconnected : false (bool)
doorStatus.Open : false (bool)
doorStatus.Opening : false (bool)
doorStatus.Stopped : false (bool)
doorStatus.Unknown : false (bool)
onOffState : on (on/off bool)
onOffState.ui : locked (string)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : True
version : None