On this page

Lighting Scene Library

This interface depends on cloud capabilities and requires authorization configuration in the Mini Program Developer Platform under Development Settings - Cloud Capabilities.

Interface Capabilities

For the capability of lighting scene library, we provide the following interface capabilities, which developers can use to call the API to complete related business development.

Note that the following APIs require the use of @ray-js/ray^1.4.14.

Interface NameDescription
checkLightLibrariesVersionsUpgradableCheck if there are upgradeable versions for the bound libraries
upgradeToLatestLightLibrariesVersionsUpgrade the library version used by the device or group to the latest
getLightLibrariesDataGet the data from the lighting (scene/music, etc.) library bound to the device or group
getLightLibrariesDataTypesGet the data types of the lighting library bound to the device or group