大家好:
在做on/off sw设备的时候发现on/off属性有这个,请问这个属性的具体作用和意义是什么。文档上是作为全局场景控制,然后是防止2次开命令跟关命令导致当前全局场景变化或者设备全关。但又能被on/off 属性的值影响。
一脸懵逼,求各位解惑。
谢谢!
YiKai Chen:
就是作场景控制用的,可以設置某個场景,比如场景1觸發的動作是on,然後儲存起來,如果有人觸發场景1,就會作ON的動作
Tenang:
回复 YiKai Chen:
按照文档所示,要关闭这个标志位只能通过off with Effect命令,这样的话我发了off命令是无法关闭灯的,因为场景标志位还在?
YiKai Chen:
回复 Tenang:
不會的,场景标志也是命令,就是在收到的當下執行,你後來送出的off命令會覆蓋掉之前的场景标志
Tenang:
回复 YiKai Chen:
The GlobalSceneControl attribute is set to FALSE after reception of a Off with effect command.
还有上面的描述,如何防止2次on 2次off对系统的影响,请YK帮忙解答一下疑惑。
YiKai Chen:
回复 Tenang:
你說的2次on 2次off是什麼意思?
Tenang:
回复 YiKai Chen:
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 recalled when the devices are turned
on.
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.
The GlobalSceneControl attribute SHALL be set to TRUE after the reception of a command which causes the OnOff
attribute to be set to TRUE, such as a standard On command, a Move to level (with on/off) command, a Recall scene
command or a On with recall global scene command (see Section 3.8.2.3.5).
The GlobalSceneControl attribute is set to FALSE after reception of a Off with effect command
YiKai Chen:
回复 Tenang:
這部份ZCL spec是optional的,我還沒有研究過,沒有辦法協助你
Tenang:
回复 YiKai Chen:
没关系,很感谢你的回复和支持。:)
Alvin Chen:
回复 Tenang:
这个我也没怎么研究过,找一下我们E2E worldwide那边的同事。
e2e.ti.com/…/