node-red-contrib-zigbee icon indicating copy to clipboard operation
node-red-contrib-zigbee copied to clipboard

Device specific commands

Open Sineos opened this issue 4 years ago • 5 comments

I'm trying to set the Sensitivity on the Xiaomi DJT11LM. Ref: https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/converters/toZigbee.js#L634

What I tried: grafik

grafik

grafik

I know the above screenshot is not valid JSON. I tried:

{
	"0xFF0D": {
		"value": "0x15",
		"type": "0x20"
	}
}

=> Error: Cannot read property 'toUpperCase' of undefined

{
	"0xFF0D": {
		"value": 0x15,
		"type": 0x20
	}
}

=> Error: Timeout - 31878 - 1 - 24 - 0 - 4 after 10000ms

{
	"0xFF0D": {
		"value": 15,
		"type": 20
	}
}

=> Error: Cannot read property 'toUpperCase' of undefined

Sineos avatar Nov 15 '19 06:11 Sineos

with the write cmd it should work like this (you have to convert the hex values) image

Using a zigbee2mqtt-style payload ({"sensitivity":"high") can only work with the converter node, the command node (same like #70) does not do any conversions.

hobbyquaker avatar Nov 15 '19 19:11 hobbyquaker

addition: as this is a battery-device you will have to keep it awake when trying to send commands.

hobbyquaker avatar Nov 15 '19 19:11 hobbyquaker

Unfortunately, I cannot get it to work. Not with the converter node and not with writing a direct command. Every time I get the timeout error.

Tried every possible combination / timing with pressing the button on the device.

Sineos avatar Nov 16 '19 20:11 Sineos

give me a few more days, also got this device, will try to reproduce.

hobbyquaker avatar Nov 18 '19 17:11 hobbyquaker

I think I managed to pass the command successfully. It required to go extremely near the coordinator (in contrast to pairing, which it did with quite a distance)

Now I tried to verify the value with: grafik

Again, it required to be very near to the coordinator (which is kind of a pity, once such sensor are finally installed)

I expected to find something like:

{
	"65293": {
		"32": 21
	},
	"modelId": "lumi.vibration.aq1"
}

But I have not been able to read-out this.

Sineos avatar Nov 21 '19 20:11 Sineos