How to set command script of zigbee

We have 0xf0 to 0xf4 command which follow with cluster id “0xfc82”. Here is the script :

Click on deCONZ ui , it shows UNSUP_CLUSTER_COMMAND , check with sniffer it shows without
mfcode which should follow with command 0xf0 . The left is right and the right one is myself . How to change my script , I have try many times and fail .

Hello, not the same device than here ? DDF add support for HEIMAN IR control HS2IRC by Smanar · Pull Request #7860 · dresden-elektronik/deconz-rest-plugin · GitHub
Try adding the mfcode in the attribute field ?

<attribute id="0x0032" name="Usertest" type="bool" default="0" access="rw" required="o" mfcode="0x100b"></attribute>

Not work .
It is not the same device . This is our device .

 <cluster id="0xfc82" name="Learning IR function" mfcode="0x128B">
      <description>Learn IR function</description>
      <server>
       <command id="0xf0" dir="recv" name="IRTrigger" required="m" mfcode="0x128B">
          <description>Learn Remote Control Code Command</description>
          <payload>
            <attribute id="0x0032" name="Usertest" type="bool" default="0" access="rw" required="o" mfcode="0x128B"></attribute>
          </payload>
        </command>
        <command id="0xf1" dir="recv" name="IRLearning" required="m">
          <description>Learn Remote Control Code Command</description>
          <payload>
            <attribute id="0x0000" type="u8" name="SourceID" required="m" showas="hex" default="0x00" mfcode="0x128B"></attribute>
            <attribute id="0x0001" type="u8" name="Location" required="m" showas="hex" default="0x00" mfcode="0x128B"></attribute>
          </payload>
        </command>
        <command id="0xf2" dir="recv" name="learnResult" required="m">
          <description>Learn Remote Control Code Response</description>
          <payload>
            <attribute id="0x0000" type="u8" name="SourceID" required="m" showas="hex" default="0x00" mfcode="0x128B"></attribute>
            <attribute id="0x0001" type="u8" name="Location" required="m" showas="hex" default="0x00" mfcode="0x128B"></attribute>
          </payload>
        </command>
        <command id="0xf3" dir="recv" name="DataSource" required="m">
          <description>Select Learning Data Source Command</description>
          <payload>
            <attribute id="0x0000" type="u8" name="SourceID" required="m" showas="hex" default="0x00" mfcode="0x128B"></attribute>           
          </payload>
        </command>
        <command id="0xf4" dir="recv" name="ACLearningResponse" required="m">
          <description>Select AC Learning Response</description>
          <payload>
            <attribute id="0x0000" type="u8" name="SourceID" required="m" showas="hex" default="0x00" mfcode="0x128B"></attribute>           
          </payload>
        </command>
      </server>
      <client>      	
      </client>
    </cluster>

By the way , is it must be mfcode follow with self define command in zigbee spec ? I check xml and doesn’t find such code .

Thanks , it works OK now . I add key word : vendor , is there any file to tell key words meaning?

  <command id="0xf0" dir="recv" name="IRTrigger" required="m" mfcode="0x128B" vendor="0x128B">
          <description>Learn Remote Control Code Command</description>          
        <payload>
            <attribute id="0x0000" type="u8" name="SourceID" required="m" showas="dec" default="0x00"></attribute>
            <attribute id="0x0001" type="u8" name="Location" required="m" showas="dec" default="0x00"></attribute>
       </payload>       
        </command>

There is an help file here https://www.dresden-elektronik.de/funk/software/deconz.html?file=files/dresden-elektronik/content/downloads/dokumente/funktechnik/deCONZ-BHB-en.pdf

But I have just checked, nothing about the “vendor” field.

Yes , but this key word works OK , the help file I have checked on dongle help . Now I can the right message from dongle ,but I met another problem : send self define message to dongle, dongle doesn’t send default response , it just ack . I try to set reponse value on client setion, it cannot show on dongle interface . Below is my script , device will send command 0xf2 to dongle and with 3 values. I want to show these values on interface when it receive .

 <client> 
   	    <command id="0xf2" dir="recv" name="learnResult" required="m" mfcode="0x128B" response="0x0b">
          <description>Learn Remote Control Code Response</description>
          <payload>
            <attribute id="0x0000" type="u8" name="SourceID" required="m" showas="hex" default="0x00"></attribute>
            <attribute id="0x0001" type="u8" name="Location" required="m" showas="hex" default="0x00"></attribute>
            <attribute id="0x0002" type="enum8" name="Status" required="m" access="r" default="0x02">
            	<value name="IDLE" value="0x02"/>
            	<value name="TRUE" value="0x00"/>
              <value name="FALSE" value="0x01"/>
             </attribute>
          </payload>
        </command>  
      </client>

It’s exactly what I m doing for this device DDF add support for HEIMAN IR control HS2IRC by Smanar · Pull Request #7860 · dresden-elektronik/deconz-rest-plugin · GitHub

Thanks . But DDF not work on my side . It can hot reload ddf file and Draft available items to items, but it cannot change ddf by my edit and upload . I want to add binding items , it cannot work . It can safe ddf ,but it cannot open ddf file which it safe.

You can save the DDF but not open it ?
Take a look in the DDF file using a simple text editor and check it here https://jsonlint.com/

And better to use a text editor if you can, less problems.