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
  •   

            Sure, I can use this command to control bulb on/off, as below:

            $ ./chip-tool onoff toggle <node_id> <endpoint_id>

            But when I send this command to switch, it popup do not support of/off cluster.

            So I want to know whether CHIP tool can send command to switch to turn on/off bulb? (as case 3)

            case1: CHIP tool  -> bulb : pass

            case2: Switch - > bulb: pass

            case3: CHIP tool -> switch -> bulb: ???

Children
Related