indigo functions

Posted on
Tue Feb 12, 2019 11:43 am
kw123 offline
User avatar
Posts: 6660
Joined: May 12, 2013
Location: Dallas, TX

indigo functions

I found this list useful. all function for any object in one place.
Kar;
Code: Select all
indigo functions and web pages;   Feb 12, 2019

###########################
indigo.server. @ https://wiki.indigodomo.com/doku.php?id=indigo_7_documentation:server_commands
indigo.server.version
indigo.server.apiVersion
indigo.server.address
indigo.server.calculateSunrise()
indigo.server.calculateSunset(myDateObject)
indigo.server.getEventLogList()
indigo.server.getEventLogList(lineCount=5)
indigo.server.getEventLogList(showTimeStamp=False)
indigo.server.getEventLogList(lineCount=5, showTimeStamp=False)
indigo.server.getEventLogList(returnAsList=True, lineCount=5)
indigo.server.getDbName()
indigo.server.getInstallFolderPath()
indigo.server.getLatitudeAndLongitude()
indigo.server.getPlugin("com.company.pluginId")
indigo.server.getSerialPorts()
indigo.server.getTime()
indigo.server.log("Text to log", type="myType", isError=True)
indigo.server.removeAllDelayedActions()
indigo.server.speak("text to speak", waitUntilDone=True)


###########################
indigo.devices @https://wiki.indigodomo.com/doku.php?id=indigo_7_documentation:device_class
dev=indigo.devices[123]
dev.replacePluginPropsOnServer
dev.updateStateOnServer()
indigo.device.allOff()
indigo.device.allOff(indigo.kAllDeviceSel.HouseCodeA)
indigo.device.allOff(indigo.kAllDeviceSel.Insteon)
indigo.device.beep(123)
indigo.device.create
indigo.device.delete(123)
indigo.device.duplicate(123, duplicateName='New Name')
indigo.device.enable(123, value=True)
groupList = indigo.device.getGroupList(123)
depDict = indigo.device.getDependencies(123)
indigo.device.moveToFolder(123, value=987)
result = indigo.device.ping(123, suppressLogging=True)
indigo.device.removeDelayedActions(123)
indigo.device.resetEnergyAccumTotal(123)
indigo.device.displayInRemoteUI(123, value=True)
indigo.device.statusRequest(123, suppressLogging=True)
indigo.device.toggle(123, delay=10, duration=300)
indigo.device.turnOff(123, delay=10, duration=300)
indigo.device.turnOn(123, delay=10, duration=300)
indigo.device.unlockOff(123, delay=10, duration=300)
indigo.device.lock(123, delay=10, duration=300)
indigo.dimmer.allLightsOff(indigo.kAllDeviceSel.Insteon)
indigo.dimmer.allLightsOn(indigo.kAllDeviceSel.Insteon)
indigo.dimmer.brighten('Office Lamp', by=50, delay=4)
indigo.dimmer.dim('Office Lamp', by=50, delay=4)
indigo.dimmer.setBrightness(123, value=75, delay=360)
indigo.dimmer.setLedState(123, index=0, value=True, updateStatesOnly=True)
indigo.iodevice.setBinaryOutput(123, index=2, value=True)
indigo.sensor.setOnState(123, value=True)
indigo.relay.setLedState(123, index=0, value=True, updateStatesOnly=True)
indigo.device.toggle(123)
indigo.speedcontrol.decreaseSpeedIndex(123, delay=10)
indigo.speedcontrol.increaseSpeedIndex(123, delay=10)
indigo.speedcontrol.increaseSpeedIndex(123, value=2, delay=10)
indigo.speedcontrol.setSpeedLevel(123, value=75, delay=10)
indigo.sprinkler.nextZone(123)
indigo.sprinkler.pause(123)
indigo.sprinkler.previousZone(123)
indigo.sprinkler.resume(123)
indigo.sprinkler.run(123, schedule=[10,15,8, 0, 0, 0, 0, 0])
indigo.sprinkler.stop(123)
indigo.sprinkler.setActiveZone(123, index=2)
indigo.thermostat.decreaseCoolSetpoint(123, delta=5)
indigo.thermostat.decreaseHeatSetpoint(123, delta=5)
indigo.thermostat.increaseCoolSetpoint(123, delta=5)
indigo.thermostat.increaseHeatSetpoint(123, delta=5)
indigo.thermostat.setCoolSetpoint(123, value=78)
indigo.thermostat.setFanMode(123, value=indigo.kFanMode.AlwaysOn)
indigo.thermostat.setHeatSetpoint(123, value=78)
indigo.thermostat.setHvacMode(123, value=indigo.kHvacMode.HeatCool)

###########################
variables @ https://wiki.indigodomo.com/doku.php?id=indigo_7_documentation:variable_class
var = indigo.variables[123456]
intValue = var.getValue(bool/int/...) 
indigo.variable.create("VariableName", value="Var Value", folder=843920)
indigo.variable.delete(123)
indigo.variable.duplicate(123, duplicateName="NewName")
depDict = indigo.variable.getDependencies(123)
indigo.variable.moveToFolder(123, value=987)
ndigo.variable.displayInRemoteUI(123, value=True)
indigo.variable.updateValue(123, value="New Value")


###########################
folders @ https://wiki.indigodomo.com/doku.php?id=indigo_7_documentation:folder_class
indigo.variables.folder.create("Folder Name Here")
indigo.devices.folder.delete(123, deleteAllChildren=True)
indigo.controlPages.folder.duplicate(123, duplicateName="New Name")
indigo.device.folder.getId("Some Folder Name")
indigo.devices.folder.displayInRemoteUI(123, value=True)
ndigo.schedules.folder.displayInRemoteUI(123, value=False)


###########################
triggers  @ https://wiki.indigodomo.com/doku.php?id=indigo_7_documentation:trigger_class
trigger=indigo.triggers[123]
trigger.replacePluginPropsOnServer({"prop1":10,"prop2":True})
indigo.trigger.delete(123)
indigo.trigger.duplicate(123, duplicateName="New Name")
indigo.trigger.enable(12, value=True, duration=360, delay=60)
indigo.trigger.execute(123, ignoreConditions=False)
indigo.trigger.moveToFolder(123, value=987)
indigo.trigger.removeDelayedActions(123)
indigo.devStateChange.create(name="Trigger Name Here",   description="Description Here",     folder=1234)
indigo.emailRcvd.create(name="Trigger Name Here",        description="Description Here",     folder=1234)
indigo.insteonCmdRcvd.create(name="Trigger Name Here",   description="Description Here",     folder=1234)
indigo.interfaceFail.create(name="Trigger Name Here",    description="Description Here",     folder=1234)
indigo.interfaceInit.create(name="Trigger Name Here",    description="Description Here",     folder=1234)
indigo.pluginEvent.create(name="Trigger Name Here",      description="Description Here",     folder=1234),   
indigo.powerFailure.create(name="Trigger Name Here",     description="Description Here",     folder=1234)
indigo.serverStartup.create(name="Trigger Name Here",    description="Description Here",     folder=1234)
indigo.x10CmdRcvd.create(name="Trigger Name Here",       description="Description Here",     folder=1234)
indigo.varChange.create(name="Trigger Name Here",        description="Description Here",     folder=1234)


###########################
action @ https://wiki.indigodomo.com/doku.php?id=indigo_7_documentation:action_class


###########################
action groups @ https://wiki.indigodomo.com/doku.php?id=indigo_7_documentation:action_group_class
indigo.actionGroup.delete(123)
indigo.actionGroup.displayInRemoteUI(123, value=True)
indigo.actionGroup.duplicate(123, duplicateName="New Name")
indigo.actionGroup.execute(123)
indigo.actionGroup.moveToFolder(123, value=987)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest