Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
api_release_notes:2.3 [2020/02/07 18:48] mattbapi_release_notes:2.3 [2026/04/07 18:27] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== API v2.3 Release Notes ======
 +This version of the API shipped with Indigo 7.4.1 - check the [[:API Version Chart]] to see what version of the API is available in which Indigo versions.
 +
 + * Added //''sharedProps''// property and //''replaceSharedPropsOnServer(sharedProps)''// method to main object instances (devices, triggers, variables, etc.) allowing for shared (readable and writable) properties across all plugins and scripts. This gives access to the same properties the user can manage on devices via the Global Property Manager plugin. Example usage:
 +
 +  sharedProps = dev.sharedProps
 +  sharedProps["sqlLoggerIgnoreStates"] = "brightnesslevel, onoffstate"
 +  dev.replaceSharedPropsOnServer(sharedProps)
 +
 +  sharedProps = var.sharedProps
 +  sharedProps["sqlLoggerIgnoreChanges"] = "true"
 +  var.replaceSharedPropsOnServer(sharedProps)
 +
 +* Added a new device iterator filter that will return all devices that support an on state:
 +
 +    for dev in indigo.devices.iter("props.SupportsOnState"):
 +        indigo.server.log(dev.name)