Copy the device handler text into a text editor, e.g. Notepad. Search for “zigbee.” (note the dot at the end). Wherever you see an instance, precede that line with “device.endpointId = 1”. There should be seven areas. For example,
device.endpointId = 1
zigbee.onOffRefresh() + zigbee.levelRefresh() + zigbee.readAttribute(0x0202, 0x0000)
Also, search for the following and give it a unique name
definition (name: “KOF Zigbee Fan Controller”,…
Create and publish a new Device Handler with the modified text from Step 1.
Create your fan device manually and choose the new device handler for your device. You’ll also need your Device Network ID (dni) and Zigbee ID (d) from the zbjoin event which you can get from Hub Events (Go to “My Hubs”, click “List Events”). If you don’t see the zbjoin event, reset and pair the fan controller again. You should see it now.
Make sure the light child device uses the original child device handler and has the same Device Network ID as the parent (with “-light” appended to it).
Assuming your fan is paired and the above is complete, it should work.