I am just integrating the new deconz binding in my system and all is working but the buttonevent.
It seems like the binding is not sending any data, no errors or any logging.
Data is coming for every channel but the switch. Maybe handling is not yet implemented?
Thanks for the info. Tried it out but again no response…
In my opinion the channel is correct: !?
My rule:
rule "tradfri remote handling"
when
Channel "deconz:switch:homeserver:remote-buttonevent:buttonevent"
then
logInfo("TradfriRemote", "Tradfri switch event {} was triggered", receivedEvent)
switch(receivedEvent.getEvent()) {
case "1002": {
night_lights.sendCommand(ON)
}
case "2002": {
night_lights.sendCommand(OFF)
}
}
end
Nobody has used the buttonevent yet, you are the first one, I guess. A triggered channel should appear in the log, the binding itself does not log anything.
In my bindings I do not log in critical code paths and in obvious cases (thing update, channel update etc). I guess one log line can be added to tell how many updated states have been received.
When I create the button in the things file, it is not created. If I instead switch the type to something like presencesensor, it is created.
If I create it using PaperUI I get 13:26:24.602 [WARN ] [core.thing.internal.ThingRegistryImpl] - Cannot create thing. No binding found that supports creating a thing of type 'deconz:switch'.
It is created fine if I create it as a lightsensor instead.
There is also support for “button” ZigBee things added a day ago. Those support normal channels. But Buttonevent is really an event, from an architectural stand point it doesn’t make sense to expose it as a state channel, it really is a trigger channel only.
@cweitkamp yes, thats what my PR is all about. See answer to your comment there, cause it is not directly related to this thread, but rather now occuring due the fix that makes buttons work in 2.5-SNAPSHOT