Need help converting ST Zigbee DTH to HE

you'll want to replace the ST raw and send cmds with the HE consolidated version of the same:

ST raw zigbee frame	
List cmds = ["raw 0x501 {09 01 00 04}","send 0x${device.deviceNetworkId} 1 1"]

HE raw zigbee frame (for the same command)
List cmds = ["he raw 0x${device.deviceNetworkId} 1 1 0x0501 {09 01 00 04}"]
	
he raw 
0x${device.deviceNetworkId} 16 bit hex address 
1							source endpoint, always one				 
1 							destination endpoint, device dependent
0x0501 						zigbee cluster id
{09 						frame control
	01 						sequence, always 01
		00 					command
			04}				command parameter(s)

I'm going to be honest, writing a driver using raw commands (and in this case you have no other options), is extremely difficult, even if you know what you're doing and have a sniffer online.

I should note, I have no idea if that will allow that driver to port correctly or not, there may be other issues. I built our drivers from scratch for these devices.

3 Likes