Issue Launching ZAP GUI with Custom Cluster in NCS v3.0.0-preview2

Hello Team,

I’m working on creating a custom Matter cluster using the instructions provided in the Nordic documentation: https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/getting_started/custom_clusters.html#ug-matter-creating-custom-cluster

I’m currently using NCS v3.0.0-preview2 and have successfully completed Step 1 using the following command:

1.west zap-append /home/rahul/Downloads/MyCluster.xml \
-b /home/rahul/ncs/v3.0.0-preview2/modules/lib/matter/src/app/zap-templates/zcl/zcl.json \
-o ~/nrf/template/zcl.json

This correctly created the zcl.json file at ~/nrf/template/zcl.json, which includes both standard and my custom cluster.

However, when I proceed to Step 2 and try launching the ZAP GUI with the following command:

cd ~/nrf/template
2.west zap-gui -j ./zcl.json --clusters /home/rahul/Downloads/MyCluster.xml

I encounter an error.

I also tried running just:

west zap-gui -j ./zcl.json

But that also results in an error. Unfortunately, the documentation doesn’t specify what the exact requirements are for this version of NCS, or how to troubleshoot west zap-gui issues.

Could you please help me understand how to resolve this? Is there a known issue with west zap-gui in v3.0.0-preview2, or is there an alternative method I should try?

Please let me know what logs or details would be helpful to share further.

Thanks in advance,
Rahul Chauhan


   

Parents
  • Hi Rahul,

    I see that you're using the preview release of NCS v3.0.0. Unless there is any specific reasons for using the preview release. Could you try by following the documentation for a more stable, fully tagged release such as NCS v2.9.1?

    Kind regards,
    Andreas

  • Hi Andreas,

    Thanks again for the suggestion.

    I’ve used NCS v2.9.1 before, but it doesn’t support west zap-append or custom Matter clusters—so I moved to the v3.0.0 series.

    I tested with:

    • v3.0.0-rc1

    • v3.0.0-preview1

    • v3.0.0-preview2

    But I’m still getting this error when launching ZAP or generating output:

    This Error show

    FATAL ERROR: command exited with status -6: /home/rahul/ncs/v3.0.0-rc1/modules/lib/matter/.zap-install/zap /home/rahul/nrf/template/src/default_zap/template.zap --zcl /home/rahul/ncs/v3.0.0-rc1/modules/lib/matter/src/app/zap-templates/zcl/zcl.json --gen /home/rahul/ncs/v3.0.0-rc1/modules/lib/matter/src/app/zap-templates/app-templates.json --tempState

    It seems related to the ZAP environment or how zcl.json and templates are handled in these versions.

    Is there a known fix or workaround?

    Happy to share logs or files if needed.

    Best,
    Rahul Chauhan

  • Hi  ,

    We have tried with the NCS v3.0.0 and it seems like issue is still there. We have even tried to use zap tool with manufacturer_specific sample but we are getting below error. Can you please check with the Matter team?

    rahul@rahul-H510M-H-V2:~/nrf/manufacturer_specific$ west zap-gui -j ./src/default_zap/zcl.json --cluster ./src/default_zap/NordicDevKitCluster.xml 
    Using ZAP file: /home/rahul/nrf/manufacturer_specific/src/default_zap/manufacturer_specific.zap
    Using ZCL file: /home/rahul/nrf/manufacturer_specific/src/default_zap/zcl.json
    Using app templates: /home/rahul/ncs/v3.0.0/modules/lib/matter/src/app/zap-templates/app-templates.json
    ZAP installation directory: /home/rahul/ncs/v3.0.0/modules/lib/matter/.zap-install
    Found ZAP 2024.8.14 (up to date)
    🔧 Using temporary state directory: /tmp/zap.TkCPEq
    [120190:0428/164621.607700:ERROR:bus.cc(407)] Failed to connect to the bus: '=' character not found or has no value following it
    [120190:0428/164621.607729:ERROR:bus.cc(407)] Failed to connect to the bus: '=' character not found or has no value following it
    [120190:0428/164621.607737:ERROR:bus.cc(407)] Failed to connect to the bus: '=' character not found or has no value following it
    [120190:0428/164621.607746:ERROR:bus.cc(407)] Failed to connect to the bus: '=' character not found or has no value following it
    Xlib:  extension "NV-GLX" missing on display ":0".
    [120236:0428/164621.706817:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
    Xlib:  extension "NV-GLX" missing on display ":0".
    Error: 
     
    Unknown cluster "Access Control" in attributeAccessInterfaceAttributes
     
     
        at loadZclJsonOrProperties (/home/rahul/ncs/v3.0.0/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/zcl/zcl-loader-silabs.js:2066:27)
        at loadZclMetaFilesCommon (/home/rahul/ncs/v3.0.0/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/zcl/zcl-loader.js:63:19)
        at Object.loadZclMetafiles (/home/rahul/ncs/v3.0.0/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/zcl/zcl-loader.js:150:28)
        at startNormal (/home/rahul/ncs/v3.0.0/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/main-process/startup.js:62:9)
        at Object.startUpMainInstance (/home/rahul/ncs/v3.0.0/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/main-process/startup.js:744:20)
    FATAL ERROR: Error::ThrowAsJavaScriptException napi_throw
    FATAL ERROR: command exited with status -6: /home/rahul/ncs/v3.0.0/modules/lib/matter/.zap-install/zap /home/rahul/nrf/manufacturer_specific/src/default_zap/manufacturer_specific.zap --zcl /home/rahul/nrf/manufacturer_specific/src/default_zap/zcl.json --gen /home/rahul/ncs/v3.0.0/modules/lib/matter/src/app/zap-templates/app-templates.json --tempState

    BR,

    Bhavya

  • Hi Bhavya,

    Noted, thank you for verifying. I will bring it up with the Matter team ASAP

    Kind regards,
    Andreas

  • Could you also share your zcl.json file? I would like to have a look at it and see if it somehow is missing something

    Kind regards,
    Andreas

  • Sure  

    here it is

    zcl.json

    {
        "description": "Matter SDK ZCL data",
        "category": "matter",
        "version": 1,
        "requiredFeatureLevel": 102,
        "xmlRoot": [
            "../../ncs/v3.0.0/modules/lib/matter/src/app/zap-templates/zcl",
            "../../ncs/v3.0.0/modules/lib/matter/src/app/zap-templates/zcl/data-model/chip",
            "../../ncs/v3.0.0/modules/lib/matter/src/app/zap-templates/zcl/data-model/silabs",
            "src/default_zap"
        ],
        "_comment": "Ensure access-control-definitions.xml is first in xmlFile array",
        "xmlFile": [
            "access-control-definitions.xml",
            "chip-types.xml",
            "access-control-cluster.xml",
            "account-login-cluster.xml",
            "administrator-commissioning-cluster.xml",
            "air-quality-cluster.xml",
            "application-basic-cluster.xml",
            "application-launcher-cluster.xml",
            "audio-output-cluster.xml",
            "ballast-configuration-cluster.xml",
            "basic-information-cluster.xml",
            "binding-cluster.xml",
            "boolean-state-cluster.xml",
            "boolean-state-configuration-cluster.xml",
            "actions-cluster.xml",
            "bridged-device-basic-information.xml",
            "chime-cluster.xml",
            "chip-ota.xml",
            "channel-cluster.xml",
            "clusters-extensions.xml",
            "color-control-cluster.xml",
            "commissioner-control-cluster.xml",
            "concentration-measurement-cluster.xml",
            "content-launch-cluster.xml",
            "content-app-observer-cluster.xml",
            "content-control-cluster.xml",
            "descriptor-cluster.xml",
            "device-energy-management-cluster.xml",
            "device-energy-management-mode-cluster.xml",
            "diagnostic-logs-cluster.xml",
            "dishwasher-alarm-cluster.xml",
            "dishwasher-mode-cluster.xml",
            "microwave-oven-mode-cluster.xml",
            "door-lock-cluster.xml",
            "drlc-cluster.xml",
            "ecosystem-information-cluster.xml",
            "electrical-energy-measurement-cluster.xml",
            "electrical-power-measurement-cluster.xml",
            "energy-evse-cluster.xml",
            "energy-evse-mode-cluster.xml",
            "energy-preference-cluster.xml",
            "ethernet-network-diagnostics-cluster.xml",
            "fan-control-cluster.xml",
            "fault-injection-cluster.xml",
            "fixed-label-cluster.xml",
            "flow-measurement-cluster.xml",
            "general-commissioning-cluster.xml",
            "general-diagnostics-cluster.xml",
            "global-attributes.xml",
            "global-bitmaps.xml",
            "global-enums.xml",
            "global-structs.xml",
            "groups-cluster.xml",
            "group-key-mgmt-cluster.xml",
            "icd-management-cluster.xml",
            "identify-cluster.xml",
            "illuminance-measurement-cluster.xml",
            "keypad-input-cluster.xml",
            "laundry-washer-mode-cluster.xml",
            "laundry-dryer-controls-cluster.xml",
            "level-control-cluster.xml",
            "localization-configuration-cluster.xml",
            "low-power-cluster.xml",
            "measurement-and-sensing.xml",
            "media-input-cluster.xml",
            "media-playback-cluster.xml",
            "messages-cluster.xml",
            "mode-base-cluster.xml",
            "mode-select-cluster.xml",
            "semantic-tag-namespace-enums.xml",
            "network-commissioning-cluster.xml",
            "occupancy-sensing-cluster.xml",
            "onoff-cluster.xml",
            "operational-credentials-cluster.xml",
            "operational-state-cluster.xml",
            "operational-state-oven-cluster.xml",
            "operational-state-rvc-cluster.xml",
            "oven-mode-cluster.xml",
            "power-topology-cluster.xml",
            "pressure-measurement-cluster.xml",
            "power-source-cluster.xml",
            "power-source-configuration-cluster.xml",
            "proxy-configuration-cluster.xml",
            "proxy-discovery-cluster.xml",
            "proxy-valid-cluster.xml",
            "pump-configuration-and-control-cluster.xml",
            "pwm-cluster.xml",
            "refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml",
            "refrigerator-alarm.xml",
            "relative-humidity-measurement-cluster.xml",
            "rvc-clean-mode-cluster.xml ",
            "rvc-run-mode-cluster.xml",
            "replacable-monitoring-cluster.xml",
            "resource-monitoring-cluster.xml",
            "scene.xml",
            "service-area-cluster.xml",
            "smoke-co-alarm-cluster.xml",
            "software-diagnostics-cluster.xml",
            "switch-cluster.xml",
            "target-navigator-cluster.xml",
            "temperature-control-cluster.xml",
            "microwave-oven-control-cluster.xml",
            "temperature-measurement-cluster.xml",
            "test-cluster.xml",
            "thermostat-cluster.xml",
            "thermostat-user-interface-configuration-cluster.xml",
            "thread-border-router-management-cluster.xml",
            "thread-network-diagnostics-cluster.xml",
            "thread-network-directory-cluster.xml",
            "time-format-localization-cluster.xml",
            "time-synchronization-cluster.xml",
            "timer-cluster.xml",
            "user-label-cluster.xml",
            "unit-localization-cluster.xml",
            "valve-configuration-and-control-cluster.xml",
            "wake-on-lan-cluster.xml",
            "washer-controls-cluster.xml",
            "water-heater-management-cluster.xml",
            "water-heater-mode-cluster.xml",
            "webrtc-provider-cluster.xml",
            "wifi-network-diagnostics-cluster.xml",
            "wifi-network-management-cluster.xml",
            "window-covering.xml",
            "matter-devices.xml",
            "sample-mei-cluster.xml",
            "types/door-lock.xml",
            "types/occupancy-sensing.xml",
            "types/thermostat-user-interface-configuration.xml",
            "MyCluster.xml"
        ],
        "manufacturersXml": "../../ncs/v3.0.0/modules/lib/matter/src/app/zap-templates/zcl/data-model/manufacturers.xml",
        "options": {
            "text": {
                "defaultResponsePolicy": [
                    "Always",
                    "Conditional",
                    "Never"
                ]
            },
            "bool": [
                "commandDiscovery"
            ]
        },
        "defaults": {
            "text": {
                "manufacturerCodes": "0x1002",
                "defaultResponsePolicy": "always"
            },
            "bool": {
                "commandDiscovery": true
            }
        },
        "listsUseAttributeAccessInterface": true,
        "attributeAccessInterfaceAttributes": {
            "Access Control": [
                "ClusterRevision",
                "SubjectsPerAccessControlEntry",
                "TargetsPerAccessControlEntry",
                "AccessControlEntriesPerFabric"
            ],
            "Administrator Commissioning": [
                "WindowStatus",
                "AdminFabricIndex",
                "AdminVendorId"
            ],
            "Basic Information": [
                "DataModelRevision",
                "VendorName",
                "VendorID",
                "ProductName",
                "ProductID",
                "Location",
                "HardwareVersion",
                "HardwareVersionString",
                "SoftwareVersion",
                "SoftwareVersionString",
                "ManufacturingDate",
                "PartNumber",
                "ProductURL",
                "ProductLabel",
                "SerialNumber",
                "UniqueID",
                "CapabilityMinima",
                "ProductAppearance",
                "SpecificationVersion",
                "MaxPathsPerInvoke"
            ],
            "Bridged Device Basic Information": [
                "ProductAppearance"
            ],
            "Descriptor": [
                "ClusterRevision",
                "FeatureMap"
            ],
            "Device Energy Management": [
                "ESAType",
                "ESACanGenerate",
                "ESAState",
                "AbsMinPower",
                "AbsMaxPower",
                "PowerAdjustmentCapability",
                "Forecast",
                "OptOutState",
                "FeatureMap"
            ],
            "Device Energy Management Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "Door Lock": [
                "AliroReaderVerificationKey",
                "AliroReaderGroupIdentifier",
                "AliroReaderGroupSubIdentifier",
                "AliroGroupResolvingKey",
                "AliroBLEAdvertisingVersion",
                "NumberOfAliroCredentialIssuerKeysSupported",
                "NumberOfAliroEndpointKeysSupported"
            ],
            "Energy EVSE": [
                "State",
                "SupplyState",
                "FaultState",
                "ChargingEnabledUntil",
                "DischargingEnabledUntil",
                "CircuitCapacity",
                "MinimumChargeCurrent",
                "MaximumChargeCurrent",
                "MaximumDischargeCurrent",
                "UserMaximumChargeCurrent",
                "RandomizationDelayWindow",
                "NextChargeStartTime",
                "NextChargeTargetTime",
                "NextChargeRequiredEnergy",
                "NextChargeTargetSoC",
                "ApproximateEVEfficiency",
                "StateOfCharge",
                "BatteryCapacity",
                "VehicleID",
                "SessionID",
                "SessionDuration",
                "SessionEnergyCharged",
                "SessionEnergyDischarged",
                "FeatureMap"
            ],
            "Energy EVSE Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "Ethernet Network Diagnostics": [
                "PHYRate",
                "FullDuplex",
                "CarrierDetect",
                "TimeSinceReset",
                "PacketRxCount",
                "PacketTxCount",
                "TxErrCount",
                "CollisionCount",
                "OverrunCount"
            ],
            "General Commissioning": [
                "RegulatoryConfig",
                "LocationCapability",
                "BasicCommissioningInfo",
                "SupportsConcurrentConnection"
            ],
            "General Diagnostics": [
                "NetworkInterfaces",
                "ActiveHardwareFaults",
                "ActiveRadioFaults",
                "ActiveNetworkFaults",
                "RebootCount",
                "UpTime",
                "TotalOperationalHours",
                "BootReason",
                "FeatureMap",
                "ClusterRevision"
            ],
            "Group Key Management": [
                "ClusterRevision",
                "MaxGroupsPerFabric",
                "MaxGroupKeysPerFabric",
                "FeatureMap"
            ],
            "ICD Management": [
                "IdleModeDuration",
                "ActiveModeDuration",
                "ActiveModeThreshold",
                "RegisteredClients",
                "ICDCounter",
                "ClientsSupportedPerFabric",
                "MaximumCheckInBackOff"
            ],
            "Occupancy Sensing": [
                "HoldTimeLimits",
                "HoldTime",
                "FeatureMap"
            ],
            "Operational Credentials": [
                "SupportedFabrics",
                "CommissionedFabrics",
                "CurrentFabricIndex"
            ],
            "Software Diagnostics": [
                "CurrentHeapFree",
                "CurrentHeapHighWatermark",
                "CurrentHeapUsed",
                "FeatureMap",
                "ThreadMetrics"
            ],
            "Unit Testing": [
                "struct_attr",
                "nullable_struct",
                "general_error_boolean",
                "cluster_error_boolean",
                "global_struct",
                "nullable_global_struct"
            ],
            "Thread Border Router Management": [
                "BorderRouterName",
                "BorderAgentID",
                "ThreadVersion",
                "InterfaceEnabled",
                "ActiveDatasetTimestamp",
                "PendingDatasetTimestamp",
                "FeatureMap"
            ],
            "Thread Network Diagnostics": [
                "Channel",
                "RoutingRole",
                "NetworkName",
                "PanId",
                "ExtendedPanId",
                "MeshLocalPrefix",
                "OverrunCount",
                "PartitionId",
                "Weighting",
                "DataVersion",
                "StableDataVersion",
                "LeaderRouterId",
                "DetachedRoleCount",
                "ChildRoleCount",
                "RouterRoleCount",
                "LeaderRoleCount",
                "AttachAttemptCount",
                "PartitionIdChangeCount",
                "BetterPartitionAttachAttemptCount",
                "ParentChangeCount",
                "TxTotalCount",
                "TxUnicastCount",
                "TxBroadcastCount",
                "TxAckRequestedCount",
                "TxAckedCount",
                "TxNoAckRequestedCount",
                "TxDataCount",
                "TxDataPollCount",
                "TxBeaconCount",
                "TxBeaconRequestCount",
                "TxOtherCount",
                "TxRetryCount",
                "TxDirectMaxRetryExpiryCount",
                "TxIndirectMaxRetryExpiryCount",
                "TxErrCcaCount",
                "TxErrAbortCount",
                "TxErrBusyChannelCount",
                "RxTotalCount",
                "RxUnicastCount",
                "RxBroadcastCount",
                "RxDataCount",
                "RxDataPollCount",
                "RxBeaconCount",
                "RxBeaconRequestCount",
                "RxOtherCount",
                "RxAddressFilteredCount",
                "RxDestAddrFilteredCount",
                "RxDuplicatedCount",
                "RxErrNoFrameCount",
                "RxErrUnknownNeighborCount",
                "RxErrInvalidSrcAddrCount",
                "RxErrSecCount",
                "RxErrFcsCount",
                "RxErrOtherCount",
                "ActiveTimestamp",
                "PendingTimestamp",
                "Delay",
                "SecurityPolicy",
                "ChannelPage0Mask",
                "OperationalDatasetComponents"
            ],
            "Wi-Fi Network Diagnostics": [
                "BSSID",
                "SecurityType",
                "WiFiVersion",
                "ChannelNumber",
                "RSSI",
                "BeaconLostCount",
                "BeaconRxCount",
                "PacketMulticastRxCount",
                "PacketMulticastTxCount",
                "PacketUnicastRxCount",
                "PacketUnicastTxCount",
                "CurrentMaxRate",
                "OverrunCount"
            ],
            "Channel": [
                "Lineup",
                "CurrentChannel"
            ],
            "Media Playback": [
                "SampledPosition",
                "ActiveAudioTrack",
                "ActiveTextTrack"
            ],
            "Application Launcher": [
                "CurrentApp"
            ],
            "Application Basic": [
                "Application"
            ],
            "Time Synchronization": [
                "TrustedTimeSource",
                "DefaultNTP",
                "TimeZone",
                "DSTOffset",
                "UTCTime",
                "LocalTime",
                "Granularity",
                "TimeZoneListMaxSize",
                "DSTOffsetListMaxSize"
            ],
            "Temperature Control": [
                "SupportedTemperatureLevels"
            ],
            "Dishwasher Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "Microwave Oven Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "Microwave Oven Control": [
                "CookTime",
                "MaxCookTime",
                "PowerSetting",
                "MinPower",
                "MaxPower",
                "PowerStep",
                "SupportedWatts",
                "SelectedWattIndex",
                "WattRating",
                "FeatureMap"
            ],
            "Laundry Washer Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "Refrigerator And Temperature Controlled Cabinet Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "RVC Clean Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "RVC Run Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "Operational State": [
                "OperationalState",
                "OperationalError",
                "CurrentPhase",
                "CountdownTime"
            ],
            "RVC Operational State": [
                "OperationalState",
                "OperationalError",
                "CurrentPhase",
                "CountdownTime"
            ],
            "Oven Cavity Operational State": [
                "OperationalState",
                "OperationalError",
                "CurrentPhase",
                "CountdownTime"
            ],
            "Activated Carbon Filter Monitoring": [
                "Condition",
                "DegradationDirection",
                "ChangeIndication",
                "InPlaceIndicator",
                "LastChangedTime",
                "ReplacementProductList",
                "FeatureMap"
            ],
            "HEPA Filter Monitoring": [
                "Condition",
                "DegradationDirection",
                "ChangeIndication",
                "InPlaceIndicator",
                "LastChangedTime",
                "ReplacementProductList",
                "FeatureMap"
            ],
            "Carbon Monoxide Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "Carbon Dioxide Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "Nitrogen Dioxide Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "Ozone Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "PM2.5 Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "Formaldehyde Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "PM1 Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "PM10 Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "Total Volatile Organic Compounds Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "Radon Concentration Measurement": [
                "MeasuredValue",
                "MinMeasuredValue",
                "MaxMeasuredValue",
                "PeakMeasuredValue",
                "PeakMeasuredValueWindow",
                "AverageMeasuredValue",
                "AverageMeasuredValueWindow",
                "Uncertainty",
                "MeasurementUnit",
                "MeasurementMedium",
                "LevelValue",
                "FeatureMap"
            ],
            "Air Quality": [
                "AirQuality",
                "FeatureMap"
            ],
            "Electrical Energy Measurement": [
                "Accuracy",
                "CumulativeEnergyImported",
                "CumulativeEnergyExported",
                "PeriodicEnergyImported",
                "PeriodicEnergyExported",
                "CumulativeEnergyReset",
                "FeatureMap"
            ],
            "Electrical Power Measurement": [
                "PowerMode",
                "NumberOfMeasurementTypes",
                "Accuracy",
                "Ranges",
                "Voltage",
                "ActiveCurrent",
                "ReactiveCurrent",
                "ApparentCurrent",
                "ActivePower",
                "ReactivePower",
                "ApparentPower",
                "RMSVoltage",
                "RMSCurrent",
                "RMSPower",
                "Frequency",
                "HarmonicCurrents",
                "HarmonicPhases",
                "PowerFactor",
                "NeutralCurrent",
                "FeatureMap"
            ],
            "Power Topology": [
                "FeatureMap"
            ],
            "Valve Configuration and Control": [
                "RemainingDuration"
            ],
            "Boolean State Configuration": [
                "CurrentSensitivityLevel"
            ],
            "Water Heater Management": [
                "HeaterTypes",
                "HeatDemand",
                "TankVolume",
                "EstimatedHeatRequired",
                "TankPercentage",
                "BoostState",
                "FeatureMap",
                "ClusterRevision"
            ],
            "Water Heater Mode": [
                "SupportedModes",
                "CurrentMode",
                "FeatureMap"
            ],
            "Wi-Fi Network Management": [
                "SSID",
                "PassphraseSurrogate"
            ],
            "Thread Network Directory": [
                "PreferredExtendedPanID",
                "ThreadNetworks",
                "ThreadNetworkTableSize"
            ],
            "Service Area": [
                "CurrentArea",
                "EstimatedEndTime",
                "FeatureMap"
            ]
        },
        "mandatoryDeviceTypes": "0x0016",
        "defaultReportingPolicy": "mandatory",
        "ZCLDataTypes": [
            "ARRAY",
            "BITMAP",
            "ENUM",
            "NUMBER",
            "STRING",
            "STRUCT"
        ],
        "fabricHandling": {
            "automaticallyCreateFields": true,
            "indexFieldId": 254,
            "indexFieldName": "FabricIndex",
            "indexType": "fabric_idx"
        },
        "uiOptions": {
            "showProfileId": false
        }
    }

    MyCluster.xml

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <configurator>
       <cluster>
          <domain>General</domain>
          <name>MyNewCluster</name>
          <code>0xFFF1FC01</code>
          <define>MY_NEW_CLUSTER</define>
          <description>The MyNewCluster cluster showcases a cluster manufacturer extensions</description>
          <attribute side="server" code="0xFFF10000" define="MY_ATTRIBUTE" type="boolean" writable="true" default="false" optional="false">MyAttribute</attribute>
          <command source="client" code="0xFFF10000" name="MyCommand" optional="false">
             <description>Command that takes two uint8 arguments and returns their sum.</description>
             <arg name="arg1" type="int8u"/>
             <arg name="arg2" type="int8u"/>
          </command>
          <event side="server" code="0xFFF10000" name="MyEvent" priority="info" optional="false">
             <description>Event that is generated by the server.</description>
             <arg name="arg1" type="int8u"/>
          </event>
       </cluster>
       <clusterExtension code="0x0028">
          <attribute side="server" code="0x17" define="EXTENDED_ATTRIBUTE" type="boolean" writable="true" default="false" optional="false">ExtendedAttribute</attribute>
          <command source="client" code="0x00" name="ExtendedCommand" response="ExtendedCommandResponse" optional="false">
             <description>Command that takes two uint8 arguments and returns their sum.</description>
             <arg name="arg1" type="int8u"/>
             <arg name="arg2" type="int8u"/>
          </command>
          <event side="server" code="0x04" name="ExtendedEvent" priority="info" optional="false">
             <description>Event that is generated by the server.</description>
             <arg name="arg1" type="int8u"/>
          </event>
       </clusterExtension>
       <enum name="MyNewEnum" type="int8u">
          <cluster code="0xFFF1FC01" />
          <item name="EnumValue1" value="0" />
          <item name="EnumValue2" value="1" />
       </enum>
       <struct name="MyStruct" isFabricScoped="true">
          <cluster code="0xFFF1FC01"/>
          <item fieldId="1" name="Data" type="octet_string" length="128" isFabricSensitive="true"/>
       </struct>
       <deviceType>
          <name>my-new-device</name>
          <domain>CHIP</domain>
          <typeName>My new device</typeName>
          <profileId editable="false">0x0104</profileId>
          <deviceId editable="false">0xfff10001</deviceId>
          <class>Simple</class>
          <scope>Endpoint</scope>
          <clusters lockOthers="true">
             <include cluster="MyNewCluster" client="true" server="true" clientLocked="false" serverLocked="false"/>
          </clusters>
       </deviceType>
    </configurator>
    

    BR,

    Bhavya

  • Hi,

    Both me and several of my colleagues have tried to reproduce the issue without any success. Here's the following steps we've used

    1. cd nrf/samples/template
    2. Copy  MyCluster.xml content from step 2 of the mentioned guide into a new file in the Template sample directory.
    3. west zap-gui -j ./zcl.json --clusters ./MyCluster.xml

    Could you triple check that you've followed these exact steps?

    Kind regards,
    Andreas

Reply
  • Hi,

    Both me and several of my colleagues have tried to reproduce the issue without any success. Here's the following steps we've used

    1. cd nrf/samples/template
    2. Copy  MyCluster.xml content from step 2 of the mentioned guide into a new file in the Template sample directory.
    3. west zap-gui -j ./zcl.json --clusters ./MyCluster.xml

    Could you triple check that you've followed these exact steps?

    Kind regards,
    Andreas

Children
No Data
Related