API v1.6 Release Notes
This version of the API shipped with Indigo 6 beta 6 - check the API Version Chart to see what version of the API is available in which Indigo versions.
- Added optional
uiValueargument to deviceupdateStateOnServer()method. This string is used only for UI display of the value (not for trigger or conditional logic), and is useful for adding units, percent signs, etc. - Added
sensorValueattribute to device sensor instances (sensor devices can now supportonStateand/orsensorValuestates). - Added
allowOnStateChangeandallowSensorValueChangeattributes to device sensor instances to indicate if UI controls should be shown to change the state (ex: Turn On and Turn Off buttons).
| Examples |
|---|
dev.updateStateOnServer("sensorValue", 72.3, uiValue=u"72.3 °F")
indigo.server.log("temp is " + str(dev.sensorValue))
|