This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About zb on/off attribute

Hi:

     i has a trouble about GlobalSceneControl Attribute in on/off cluster.I don't know what is the meaning of this attribute .  

    And i didn't know the meaning of those red marks.

The global scene is defined as the scene that is stored with group identifier 0 and scene identifier 0.

The GlobalSceneControl attribute is defined in order to prevent a second off command storing the all-devices-off

situation as a global scene, and to prevent a second on command destroying the current settings by going back to the

global scene.

Here is the chart about this process.

        

        

  • From the ZCL specification sections 3.8.2.2

    "In order to support the use case where the user gets back the last setting of the devices (e.g. level settings for lamps), a global scene is introduced which is stored when the devices are turned off, and restored/recalled when the devices are turned back on. The global scene is defined as the scene which is stored with the group identifier 0 and scene identifier 0."

    This attribute is an enhanced functionality for lighting so that when you're switching off a light, or several lights with an effect, if this attribute is set, it will save the last light attribute settings into the global scene with the group/scene identifiers of 0. This will then be ready to be re-used at any time when the next on with recall global scene is called.

    Note that you must have scenes and groups cluster enabled and the cluster instance must also be created.

    This is a feature which can be useful for lights that have adjustable light levels using the Level Control cluster as well as color controls.

    EDIT: So if there was a second 'off' command that was sent, this attribute would be then set to false after the first command, and thus not overriding the global scene with the current light settings (which all lights would be OFF from the first 'off' command). Vise versa, the same goes for the 'on' command with recall global scene.

    Best,

    Sean

  • in the chart show,if it is only off with effect command can turn the global scene control attribute to false and store global scene?