|  | 
|  | 1 | +<?xml version="1.0"?> | 
|  | 2 | +<!-- | 
|  | 3 | +ConfigurationParameters | 
|  | 4 | +This is a manufacturer specific cluster. | 
|  | 5 | +--> | 
|  | 6 | +<zcl:cluster xmlns:zcl="http://zigbee.org/zcl/clusters" | 
|  | 7 | +  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 
|  | 8 | +  xmlns:type="http://zigbee.org/zcl/types" | 
|  | 9 | +  xmlns:xi="http://www.w3.org/2001/XInclude" xsi:schemaLocation="http://zigbee.org/zcl/clusters cluster.xsd http://zigbee.org/zcl/types type.xsd" id="FD08" revision="1" name="UserCredential"> | 
|  | 10 | +  <classification role="application" picsCode="USRCRED" /> | 
|  | 11 | + | 
|  | 12 | + | 
|  | 13 | +  <type:type short="UserTypeEnum" name="UserTypeEnum" id="10" inheritsFrom="enum8"> | 
|  | 14 | +    <restriction> | 
|  | 15 | +      <type:enumeration value="00" name="GeneralUser" /> | 
|  | 16 | +      <!-- Reserved for future use | 
|  | 17 | +      <type:enumeration value="01" name="RESERVED"/> | 
|  | 18 | +      <type:enumeration value="02" name="RESERVED"/>  | 
|  | 19 | +      --> | 
|  | 20 | +      <type:enumeration value="03" name="ProgrammingUser"/> | 
|  | 21 | +      <type:enumeration value="04" name="NonAccessUser"/> | 
|  | 22 | +      <type:enumeration value="05" name="DuressUser"/> | 
|  | 23 | +      <type:enumeration value="06" name="DisposableUser"/> | 
|  | 24 | +      <type:enumeration value="07" name="ExpiringUser"/> | 
|  | 25 | +      <!-- Reserved for future use | 
|  | 26 | +      <type:enumeration value="08" name="RESERVED"/> | 
|  | 27 | +      --> | 
|  | 28 | +      <type:enumeration value="09" name="RemoteOnlyUser"/> | 
|  | 29 | +    </restriction> | 
|  | 30 | +  </type:type> | 
|  | 31 | +  <type:type short="CredRule" name="CredRule" id="11" inheritsFrom="enum8"> | 
|  | 32 | +    <restriction> | 
|  | 33 | +      <type:enumeration value="01" name="Single" /> | 
|  | 34 | +      <type:enumeration value="02" name="Dual"/> | 
|  | 35 | +      <type:enumeration value="03" name="Triple"/> | 
|  | 36 | +    </restriction> | 
|  | 37 | +  </type:type> | 
|  | 38 | +  <type:type short="CredType" name="CredType" id="12" inheritsFrom="enum8"> | 
|  | 39 | +    <restriction> | 
|  | 40 | +      <type:enumeration value="01" name="PINCode"/> | 
|  | 41 | +      <type:enumeration value="02" name="Password"/> | 
|  | 42 | +      <type:enumeration value="03" name="RFIDCode" /> | 
|  | 43 | +      <type:enumeration value="04" name="BLE" /> | 
|  | 44 | +      <type:enumeration value="05" name="NFC" /> | 
|  | 45 | +      <type:enumeration value="06" name="UWB" /> | 
|  | 46 | +      <type:enumeration value="07" name="EyeBiometric"/> | 
|  | 47 | +      <type:enumeration value="08" name="FaceBiometric"/> | 
|  | 48 | +      <type:enumeration value="09" name="FingerBiometric"/> | 
|  | 49 | +      <type:enumeration value="0A" name="HandBiometric"/> | 
|  | 50 | +      <type:enumeration value="0B" name="UnspecifiedBiometric"/> | 
|  | 51 | +    </restriction> | 
|  | 52 | +  </type:type> | 
|  | 53 | +  <type:type short="UserNameEncodingType" name="UserNameEncodingType" id="13" inheritsFrom="enum8"> | 
|  | 54 | +    <restriction> | 
|  | 55 | +      <type:enumeration value="00" name="ASCII"/> | 
|  | 56 | +      <type:enumeration value="01" name="OEMExtendedASCII"/> | 
|  | 57 | +      <type:enumeration value="02" name="UTF-16" /> | 
|  | 58 | +    </restriction> | 
|  | 59 | +  </type:type> | 
|  | 60 | + | 
|  | 61 | +  <type:type short="UserModifierType" name="UserModifierType" id="20" inheritsFrom="enum8"> | 
|  | 62 | +    <restriction> | 
|  | 63 | +      <type:enumeration value="00" name="DNE"/> | 
|  | 64 | +      <type:enumeration value="01" name="Unknown"/> | 
|  | 65 | +      <type:enumeration value="02" name="Z-Wave" /> | 
|  | 66 | +      <type:enumeration value="03" name="Locally" /> | 
|  | 67 | +      <type:enumeration value="04" name="MobileAppOrOtherIoT"/> | 
|  | 68 | +    </restriction> | 
|  | 69 | +  </type:type> | 
|  | 70 | + | 
|  | 71 | + | 
|  | 72 | +  <server> | 
|  | 73 | +    <attributes> | 
|  | 74 | +      <attribute id="0000" name="SupportedUserUniqueIdentifiers" type="uint16" required="true"/> | 
|  | 75 | +      <attribute id="0001" name="SupportedCredentialRules" type="map8" required="true"> | 
|  | 76 | +        <bitmap> | 
|  | 77 | +          <!-- <element name="RESERVED" type="bool" mask="01"/> --> | 
|  | 78 | +          <element name="Single" type="bool" mask="02" shiftRight="1" /> | 
|  | 79 | +          <element name="Dual" type="bool" mask="04" shiftRight="2" /> | 
|  | 80 | +          <element name="Triple" type="bool" mask="08" shiftRight="3" /> | 
|  | 81 | +        </bitmap> | 
|  | 82 | +      </attribute> | 
|  | 83 | +      <attribute id="0002" name="SupportedCredentialTypes" type="map16" required="true"> | 
|  | 84 | +        <bitmap> | 
|  | 85 | +          <element name="PINCode" type="bool" mask="01" /> | 
|  | 86 | +          <element name="Password" type="bool" mask="02" shiftRight="1" /> | 
|  | 87 | +          <element name="RFIDCode" type="bool" mask="04" shiftRight="2" /> | 
|  | 88 | +          <element name="BLE" type="bool" mask="08" shiftRight="2" /> | 
|  | 89 | +          <element name="NFC" type="bool" mask="10" shiftRight="3" /> | 
|  | 90 | +          <element name="UWB" type="bool" mask="20" shiftRight="4" /> | 
|  | 91 | +          <element name="EyeBiometric" type="bool" mask="40" shiftRight="5" /> | 
|  | 92 | +          <element name="FaceBiometric" type="bool" mask="80" shiftRight="6" /> | 
|  | 93 | +          <element name="FingerBiometric" type="bool" mask="0100" shiftRight="7" /> | 
|  | 94 | +          <element name="HandBiometric" type="bool" mask="0200" shiftRight="8" /> | 
|  | 95 | +          <element name="UnspecifiedBiometric" type="bool" mask="0400" shiftRight="9"/> | 
|  | 96 | +        </bitmap> | 
|  | 97 | +      </attribute> | 
|  | 98 | +      <attribute id="0003" name="SupportedUserTypes" type="map16" required="true"> | 
|  | 99 | +        <bitmap> | 
|  | 100 | +          <element name="GeneralUser" type="bool" mask="01" /> | 
|  | 101 | +          <!--  Reserved for future use | 
|  | 102 | +            <element name="RESERVED" type="bool" mask="02" shiftRight="1" /> | 
|  | 103 | +          <element name="RESERVED" type="bool" mask="04" shiftRight="2" /> --> | 
|  | 104 | +          <element name="ProgrammingUser" type="bool" mask="08" shiftRight="2" /> | 
|  | 105 | +          <element name="NonAccessUser" type="bool" mask="10" shiftRight="3" /> | 
|  | 106 | +          <element name="DuressUser" type="bool" mask="20" shiftRight="4" /> | 
|  | 107 | +          <element name="DisposableUser" type="bool" mask="40" shiftRight="5" /> | 
|  | 108 | +          <element name="ExpiringUser" type="bool" mask="80" shiftRight="6" /> | 
|  | 109 | +          <!-- <element name="RESERVED" type="bool" mask="0100" shiftRight="7" /> --> | 
|  | 110 | +          <element name="RemoteOnlyUser" type="bool" mask="0200" shiftRight="8" /> | 
|  | 111 | +        </bitmap> | 
|  | 112 | +      </attribute> | 
|  | 113 | +      <!--Users and credentials not appears here due to the lack of options for array types. | 
|  | 114 | +      The attributes will be published as read only. See user_credential_cluster_server.h for details --> | 
|  | 115 | +    </attributes> | 
|  | 116 | +     | 
|  | 117 | + | 
|  | 118 | +    <commands> | 
|  | 119 | +      <command id="01" name="AddUser"> | 
|  | 120 | +        <fields> | 
|  | 121 | +          <field name="UserUniqueID" type="uint16"/> | 
|  | 122 | +          <field name="UserType" type="UserTypeEnum" /> | 
|  | 123 | +          <field name="UserActiveState" type="bool" /> | 
|  | 124 | +          <field name="CredentialRule" type="CredRule" /> | 
|  | 125 | +          <field name="UserName" type="string" /> | 
|  | 126 | +          <field name="ExpiringTimeoutMinutes" type="uint16" presentIf="UserType = 07"/> | 
|  | 127 | +          <field name="UserNameEncoding" type="UserNameEncodingType"/> | 
|  | 128 | +        </fields> | 
|  | 129 | +      </command> | 
|  | 130 | +      <command id="02" name="ModifyUser"> | 
|  | 131 | +        <fields> | 
|  | 132 | +          <field name="UserUniqueID" type="uint16"/> | 
|  | 133 | +          <field name="UserType" type="UserTypeEnum" /> | 
|  | 134 | +          <field name="UserActiveState" type="bool" /> | 
|  | 135 | +          <field name="CredentialRule" type="CredRule" /> | 
|  | 136 | +          <field name="UserName" type="string" /> | 
|  | 137 | +          <field name="ExpiringTimeoutMinutes" type="uint16" presentIf="UserType = 07"/> | 
|  | 138 | +          <field name="UserNameEncoding" type="UserNameEncodingType"/> | 
|  | 139 | +        </fields> | 
|  | 140 | +      </command> | 
|  | 141 | +      <command id="03" name="DeleteUser"> | 
|  | 142 | +        <fields> | 
|  | 143 | +          <field name="UserUniqueID" type="uint16"/> | 
|  | 144 | +        </fields> | 
|  | 145 | +      </command> | 
|  | 146 | +      <command id="04" name="AddCredential"> | 
|  | 147 | +        <fields> | 
|  | 148 | +          <field name="UserUniqueID" type="uint16"/> | 
|  | 149 | +          <field name="CredentialType" type="CredType"/> | 
|  | 150 | +          <field name="CredentialSlot" type="uint16"/> | 
|  | 151 | +          <field name="CredentialData" type="string"/> | 
|  | 152 | +        </fields> | 
|  | 153 | +      </command> | 
|  | 154 | +      <command id="05" name="ModifyCredential"> | 
|  | 155 | +        <fields> | 
|  | 156 | +          <field name="UserUniqueID" type="uint16"/> | 
|  | 157 | +          <field name="CredentialType" type="CredType"/> | 
|  | 158 | +          <field name="CredentialSlot" type="uint16"/> | 
|  | 159 | +          <field name="CredentialData" type="string"/> | 
|  | 160 | +        </fields> | 
|  | 161 | +      </command> | 
|  | 162 | +      <command id="06" name="DeleteCredential"> | 
|  | 163 | +        <fields> | 
|  | 164 | +          <field name="UserUniqueID" type="uint16"/> | 
|  | 165 | +          <field name="CredentialType" type="CredType"/> | 
|  | 166 | +          <field name="CredentialSlot" type="uint16"/> | 
|  | 167 | +        </fields> | 
|  | 168 | +      </command> | 
|  | 169 | +    </commands> | 
|  | 170 | +  </server> | 
|  | 171 | +</zcl:cluster> | 
0 commit comments