[Question] understanding ZNCZ02LM power memory zigbee configuration payload in toZigbee.js #6209
cristianhares
started this conversation in
Devices
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Heya all!
First I want to say thanks for all the work in zigbee2mqtt, its awesome :)
I've been dealing with some hybrid smart home scenarios (CC2531 in an rPI + SmartThings, Hubitat + Home Asssistant, and some others) with the ZNCZ02LM, and I've been trying to understand what payload is the plug expecting to properly enable/disable power outage memory.
The reference I mentioned about that is line 1615 in the toZigbee.js library
The code in question is:
It's been quite a while since I touched javascript, I understand that the write that happens is to cluster 0000 (genBasic), Attribute Id 0xFFF0, and the type is an octet string (0x41), but I'm having difficulty understanding the code itself on what it actually expects to be written as the data.
(I'm almost sure that the plug requires a firmware update to expose attribute ID 0xFFF0, since the attribute is not there to begin with at least on firmware version hex 22 when attempting to read cluster 0x0000 Attribute Id 0xFFF0)
So, if that's a map, does that mean that for ZNCZ02LM it's expecting "[0xaa, 0x80, 0x05, 0xd1, 0x47, 0x07, 0x01, 0x10, 0x01], [0xaa, 0x80, 0x03, 0xd3, 0x07, 0x08, 0x01]" (as a literal string with the literal [] ?)
Or it means its an 'on /off toggle'? (first [ [] [] ] payload is on, second [ [] [] ] is off)
Sorry for the newbie question and thanks!!
All reactions