Can CHIP tool control switch to turn on/off bulb?

Dear Devzone:


I have setup done matter environment as blow:

  • NB: Ubuntu 22.04 with WIFI and BT, installed CHIP tool from official pre-built (V2.8.0 corresponding version: chip-tool-linux_x64.zip)
  • Raspberry Pi4 with OTBR configured
  • DK: nRF52840DK with coprocessor examples(build from NCS 2.8.0)
  • DK: nRF52840DK with Light Bulb examples(build from NCS 2.8.0)
  • DK: nRF52840DK with Light Switch examples(build from NCS 2.8.0)

I can commission bulb and switch pass, then binding bulb and switch pass. Finally, I can use chip tool or switch(press button2) to control bulb on/off.

I would like to know whether it is possible to use CHIP tool to send commands to switch, so that the switch can control the light bulb?

BR

Chuan

Parents Reply
  • Hi,

    Our Light Switch sample is not prepared to be used in this way. There is no callback implementation for receiving the on/off command from the CHIP tool, hence the mentioned error. Our sample is prepared to use the onboard button and send a command to the connected Light Bulb device in this way. If you want to use it by sending an on/off command by Chuptool to Light Switch, you need to implement the emberAfOnOffClusterInitCallback and MatterPostAttributeChangeCallback callbacks in your Light Switch application.

    -Amanda H.

Children
Related