API v1.18 Release Notes

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.

  • Added new device instance attribute displayStateImageSel and method updateStateImageOnServer() for inspecting and overriding which state image icon is shown in Indigo Touch and the client UI. See the state image sel enumeration for possible image icon values.
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)
  • Added support for configuration UI to show error alerts (via errorDict[“showAlertText”]) on button callbacks.
Example
	def someButtonPushed(self, valuesDict, typeId):
		errorDict = indigo.Dict()
		errorDict["showAlertText"] = "test error alert shown after a button action."
		return (valuesDict, errorDict)
api_release_notes/1.18.txt · Last modified: 2019/01/25 22:53 (external edit)
 

© Perceptive Automation, LLC. · Privacy