This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Light switch group assignement

Hi, I'm using the Zigbee SDKv3.1.0 Cli agent as coordinator, the Zigbee SDKv3.1.0 Ligh_Switch example and two commercial light bulb (Ikea and Heiman)
I'm be able to command the bulb one at time, with nRf switch binded only to one of them.
Now I have tried:
- configure the Group cluster and assign the same group to the two bulbs
- using CLI agent general commands, I'm be able to command both bulbs together (using group addressing)
- I tried to configure the light switch Group cluster, but it seems not working; here below the switch answer.
What I wrong? How can I use the group function inside light switch?

Parents Reply Children
  • Hi Abele,

    Sorry, you didn't mention you were using the light switch groups example. Do you know if both lamps are included in the group (received the group ID)?

    This example will first look for the light bulbs with ON/OFF cluster and Level control cluster, and then send a add group request to the lamps. Are you seing the add group req being send to both lamps in the sniffer trace?

    Do you get a NRF_LOG output from the switch with the words "Include device ____, ep ___ to the group ____" for both lamps?

    Then you can use the group ID for sending commands from the light switch, see for example light_switch_send_on_off function in the example to see how this is done.

    And could you attach the whole sniffer trace? It's difficult for me to know what is happening based on that only screenshot above.

    Best regards,

    Marjeris

  • Hi Marjeris,

    Do you know if both lamps are included in the group (received the group ID)?

    Yes, if I program the two bulbs with the default group ID

    #define DEFAULT_GROUP_ID 0xB331

    the switch work well, and I can ON or OFF both bulbs.
    Now, using CLI Agent, I configure the two bulbs with a new group ID, and I tried to program the Light Switch cluster 4 to assign same group ID, but the LW answer Unsupported Cluster (the screenshot here above)
    How can I program new group ID into Light Swtich using Zigbee protocol on-the-air?

     

  • Hi Abele,

    So if I understand correctly you want to assign a group ID to the light switch example? The light switch example doesn't include the groups server cluster, just the client cluster. That's why you are geting "Unsupported Cluster" response I think. You will need to add the groups server cluster to the light switch example and a ON/OFF server cluster if you want to process ON/OFF commands send to the group ID.

    Best regards,

    Marjeris

Related