This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |
| api_release_notes:1.6 [2019/09/30 19:28] – mattb | api_release_notes:1.6 [2026/04/07 18:27] (current) – external edit 127.0.0.1 |
|---|
| | ====== 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 //''uiValue''// argument to device //''updateStateOnServer()''// 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 //''sensorValue''// attribute to device sensor instances (sensor devices can now support //''onState''// and/or //''sensorValue''// states). |
| | * Added //''allowOnStateChange''// and //''allowSensorValueChange''// attributes to device sensor instances to indicate if UI controls should be shown to change the state (ex: Turn On and Turn Off buttons). |
| | |
| | ^ Examples ^ |
| | |<code>dev.updateStateOnServer("sensorValue", 72.3, uiValue=u"72.3 °F") |
| | indigo.server.log("temp is " + str(dev.sensorValue))</code>| |
| |