Adding cluster custom into mater light_bulb

Adding clusters to Matter application 

-im using nrf52840dk , nrf connect sdk v2.7.0 

-Edit clusters using the ZAP tool

https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/getting_started/adding_clusters.html

adding cluster point no 2  upto sub point no 8 successfully done

but while point 8 trying to execute showing error 

command not execute -> west zap-generate

nistantritech@nistantritech-HP-EliteDesk-800-G3-SFF:~$ west zap-generate
usage: west [-h] [-z ZEPHYR_BASE] [-v] [-q] [-V] <command> ...
west: unknown command "zap-generate"; workspace /home/nistantritech does not define this extension command -- try "west help" and "west -vv status"

zap tool install location : ncs/v2.7.0/modules/lib/matter

correct me if i'm doing wrong.

Parents
  • Hi,

    Are there any errors when running the "west zap-gui" command, or only when using the "west zap-generate" command? Are you running the command from a terminal where the nRF Connect SDK environment is set up, such as an nRF Connect terminal in VS Code?

    Best regards,
    Marte

  • following interface open when "west zap-gui" command use 

    after addition of cluster i generate 

    using this we can add cluster as above correct me if i'm wrong.

    after generating cluster i use "west zap-generate"  command showing error 

    path for "west zap-gui" on same path i use "west zap-generate" showing "No valid .zap file provided" because zap file inside the sample code light_bulb so at that location i use 

     "west zap-generate" command then showing error

    "usage: west [-h] [-z ZEPHYR_BASE] [-v] [-q] [-V] <command> ...
    west: unknown command "zap-generate"; workspace /home/nistantritech/light_bulb_3 does not define this extension command -- try "west help" and "west -vv status"

    Are you running the command from a terminal where the nRF Connect SDK environment is set up, such as an nRF Connect terminal in VS Code? 

    yes, Command running form terminal where nRF Connect SDK environment is set up.  

Reply
  • following interface open when "west zap-gui" command use 

    after addition of cluster i generate 

    using this we can add cluster as above correct me if i'm wrong.

    after generating cluster i use "west zap-generate"  command showing error 

    path for "west zap-gui" on same path i use "west zap-generate" showing "No valid .zap file provided" because zap file inside the sample code light_bulb so at that location i use 

     "west zap-generate" command then showing error

    "usage: west [-h] [-z ZEPHYR_BASE] [-v] [-q] [-V] <command> ...
    west: unknown command "zap-generate"; workspace /home/nistantritech/light_bulb_3 does not define this extension command -- try "west help" and "west -vv status"

    Are you running the command from a terminal where the nRF Connect SDK environment is set up, such as an nRF Connect terminal in VS Code? 

    yes, Command running form terminal where nRF Connect SDK environment is set up.  

Children
  • Hi,

    The issue is that the bash terminal does not have the environment set up unless you are inside the SDK folders. Can you try running it from an nRF Connect terminal in VS Code instead of bash? You can open an nRF Connect terminal by clicking the error next to the plus sign in the terminal and selecting "nRF Connect," or by opening the command palette (Ctrl + Shift + P) and finding the "nRF Connect: Create Shell Terminal" option.

    Best regards,
    Marte

Related