Ha ? IDK if this attribute can work on this device, and why it is only read.
On the file general.xml (BTW what is your OS ?) you can set it read/write with
This device is a sleeper, so we need to awake them in same time we send the request with deconz (generaly with short press on reset button
Yes, it’s a sleeper, and I worked out that I needed to press the button to get reads and writes to work. As mentioned once I wrote to that attribute (and deconz reported write successfull) the device became unresponsive. Eg there were no more messages in the debug log when I pressed the button. The only way to fix it was to remove the battery.
But I don’t see why the triple press don’t work if it’s the official method.
Looking at other projects it seems the device needs some kind of initialisation otherwise it stays stuck in this mode, and doesn’t respond to triple clicks.
I managed to get one of my two buttons into the right mode. The problem is I have no idea what did the trick. I also haven’t been able to repeat it with my second button.
I was trying to do things like manually read attributes as is done for “tuya magic”, plus setting the operational mode. Then the switch became unresponsive again so I reset/repaired it. And then it worked!
I am not sure what you mean by only needing to do this on the “first device”, but I assume you are saying that the DDF file is shared between all instances of a particular device?
Anyway: It now working.
First I edited the DDF
Second I re-paired the button
After that I can now change mode by triple clicking the button.
Nope ^^, easier, there is some part in the DDF, this code just need to be included in only 1 part. If you use it 2 time for the same device, there is one too much.
BTW, if all is working you can submit a PR to add it officialy ? I can do it if you want, but need the final and tested DDF.