Controlling state
The Apply endpoint can be used to control lights and other devices. There are two key use cases:
Applying a preset scene (the states and included devices are defined in the pre-created scene)
Applying an arbitrary state to a group of devices. The state can be applied to a single light, to all lights in a room, to all lights in a space or to all lights attached to a logical device.
For a scene to be used, a scene must first be created through the Scene API.