I just purchase a few units of Xiaomi Aqara Zigbee Switch for development. Plan to replace all my Broadlink TC2 switch with it. I am in the process of writing a device handler for it and having trouble getting the cluster information during join process for this device.
I can only see the bunch of raw message in the hub log after the add device process completed.
Most of them does not look valid except for the first raw message.
raw:F4690000158D00013E6CC2, dni:F469, errorCode:00, ieee:00158D00013E6CC2
Which appear to be Device Network ID and Zigbee ID
I keep reseting the switch and somehow the following message appear in the hub log,
ep_cnt:2, ep:01 02
desc: 01 0104 019A 00 01 0000 00
desc: 02 FC01 019A 00 00 00
It appear to have two endpoint with a generic cluster 0x0000 at endpoint 0x01
Endpont 2 doesn’t look like it have any valid cluster.
I’m using using this fingerprint to bind the switch to my DTH
fingerprint profileId: “0104”, deviceId: “019A”, deviceVersion: “00”, inClusters: “0000”, outClusters: “00”, manufacturer: “LUMI”, model: “lumi.ctrl_neutral1”, deviceJoinName: “Xiaomi Aqara Switch”
It still does not bind automatically during join process and I have to manually add the Device Network ID F469
def parse(String description) {
log.debug “Parsing ‘${description}’”
// send event for heartbeat
def now = new Date().format(“yyyy MMM dd EEE h:mm:ss a”, location.timeZone)
sendEvent(name: “lastCheckin”, value: now)
def results =
if (description?.startsWith('on/off: '))
results = parseCustomMessage(description)
if (description?.startsWith(‘catchall:’))
results = parseCatchAllMessage(description)
return results;
}
Because it is a toggle switch
To turn on the light
Switch press will return “on/off: 1” in the IDE log
Switch release release will return “on/off: 0” in the IDE log
To turn off the light
Switch press will return “on/off: 0” in the IDE log
Switch release release will return “on/off: 0” in the IDE log
Then catchall log start appearing in the IDE Log.
catchall: 0104 0000 01 01 0100 00 F469 00 04 115F 0A 01 01FF42296410006510006E20006F20FF0121E40C03281F05211800082111260A2100009923000000009B210000
Great I can get physical switch press event, but I no idea how to progress from here to turn on and off the light via write to cluster.
Is any command I can use to get more detail of the Zigbee Cluster. Any Zigbee expert here can show me some pointers? This is my first Zigbee DTH and I am totally lost here after spending two days working on this.