1. Load [examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap](https://github.com/project-chip/connectedhomeip/blob/master/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap) and create new endpoint (EP3) with SmokeAlarmCO + PowerSource device type
![image](https://github.com/project-chip/zap/assets/7869096/89458384-c188-44b9-84d8-9086e7bd56e1)
1. Confirm the primary device type in EP3 is SmokeCOAlarm sensor, then click "File" => "Save As" => e.g., **SmokeCOAlarm_new.zap**
![image](https://github.com/project-chip/zap/assets/7869096/37251556-6041-49f9-9e41-aeec9575cb51)
1. Close zap GUI and
1. Run ./scripts/tools/zap/run_zaptool.sh again to load the new **SomkeCOAlarm_new.zap**, the Primary device type becomes the PowerSource
![image](https://github.com/project-chip/zap/assets/7869096/8c763308-e723-46e5-a8af-3078c569c590)
1. Checking the zap file, the PowerSource becomes the device type
Reproducing steps
Prepare the environment by download Matter SDK
erwinpan@erwinpan-p1g4lin01:~/matter/erwinpan1/master_0901_smokecoalarm$ source scripts/activate.sh
erwinpan@erwinpan-p1g4lin01:~/matter/erwinpan1/master_0901_smokecoalarm$ zap --version Version: 2023.8.4 Feature level: 97 Hash: d9df1e59864c47a77e838d7b096e854c4a64ea5b Date: 2023-08-04T17:38:35.000Z Mode: source erwinpan@erwinpan-p1g4lin01:~/matter/erwinpan1/master_0901_smokecoalarm$ whereis zap zap: /usr/bin/zap /home/erwinpan/matter/erwinpan1/master_0901_smokecoalarm/.environment/cipd/packages/zap/zap
erwinpan@erwinpan-p1g4lin01:~/matter/erwinpan1/master_0901_smokecoalarm$ rm -rf ~/.zap/ erwinpan@erwinpan-p1g4lin01:~/matter/erwinpan1/master_0901_smokecoalarm$