I am working on Zigbee Control Bridge Application note JN-AN-1223, I am trying to set a scene and then recall it. I can add and store a scene using ZGUI (Zigbee Gateway User Interface) app from my PC and then later view it as well.
When I recall a scene the devices that are following the scene do not restore their state.
Here is what I am doing.
I am sending store scene command to device with short address 0x139E, I am not using a group here so 0x0000 as group id
result:
When I send view group command
this is what I get:
Type: 0x8000
(Status)
Length: 4
Status: 0x00 (Success)
SQN: 0xC5
Message:
Type: 0x8011
(APS Data ACK)
Status: 0x00
SQN: 0xC5
Source EndPoint: 0x01
Destination EndPoint: 0x01
Profile ID: 0x0104 (ZigBee HA)
Cluster ID: 0x0005 (General: Scenes)
Type: 0x80A0
(View Scene)
SQN: 0x38
EndPoint: 0x01
Cluster ID: 0x0005
Status: 0x00
Group ID: 0x0000
Scene Id: 0x02
Transition Time: 0x0000
Scene Name Length: 0x00
Scene Name Max Length: 0x10
Scene Name:
Ext Scene Length: 0x0000
Ext Max Length: 0x00
Scene Data:
Type: 0x8101
(Default Response)
SQN: 0x38
Short Address: 0x139E
Source EndPoint: 0x10
Destination EndPoint: 0x00
Cluster ID: 0x0000 (General: Basic)
Command: 0x53
Status: 0x57
Recall command
I get :
Message:
Type: 0x8011
(APS Data ACK)
Status: 0x00
SQN: 0xC6
Source EndPoint: 0x01
Destination EndPoint: 0x01
Profile ID: 0x0104 (ZigBee HA)
Cluster ID: 0x0005 (General: Scenes)
Type: 0x8101
(Default Response)
SQN: 0x39
Short Address: 0x139E
Source EndPoint: 0x10
Destination EndPoint: 0x00
Cluster ID: 0x0000 (General: Basic)
Command: 0x53
Status: 0x57
but the device does not recall its stored state!
Am I missing something? Please guide me !
已解决! 转到解答。
Hi Dost,
A scene is often associated with a group (which collects together a set of endpoints over one or more devices)
Note: When the Scenes cluster is used on an endpoint, a Groups cluster instance must always be created on the same endpoint, even if a group is not used for the scene
To be able to use a scene command, the target device must be a member of a group with an associated scene.
Best Regards,
Mario
Hi Dost,
A scene is often associated with a group (which collects together a set of endpoints over one or more devices)
Note: When the Scenes cluster is used on an endpoint, a Groups cluster instance must always be created on the same endpoint, even if a group is not used for the scene
To be able to use a scene command, the target device must be a member of a group with an associated scene.
Best Regards,
Mario
Hi , I have done that as well.
Here are the steps.
Hi Dost,
What are you seeing in the received message view?
I followed your steps with one endpoint.
I change the state of lights on the device using the short and group address.When I send a recall command the status restored successfully.
But, How do you add more endpoints?
Did you have the sniffer log of this?
Regards,
Mario