This version of the API shipped with Indigo 6.0.19 - check the API Version Chart to see what version of the API is available in which Indigo versions.
Example |
indigo.server.log("state image selector: " + str(dev.displayStateImageSel))
dev.updateStateImageOnServer(indigo.kStateImageSel.SprinklerOff)
dev.updateStateImageOnServer(indigo.kStateImageSel.SprinklerOn)
dev.updateStateImageOnServer(indigo.kStateImageSel.HvacCooling)
dev.updateStateImageOnServer(indigo.kStateImageSel.PowerOn)
dev.updateStateImageOnServer(indigo.kStateImageSel.SensorOn)
dev.updateStateImageOnServer(indigo.kStateImageSel.TimerOn)
|
Example |
def someButtonPushed(self, valuesDict, typeId):
errorDict = indigo.Dict()
errorDict["showAlertText"] = "test error alert shown after a button action."
return (valuesDict, errorDict)
|