Schneider Electric / Wiser Merten MEG5113-0300

It would be great, if future Deconz versions could support buttonevents for this device. (1GANG/SWITCH/1). I added the device manually in the button_maps.json

"modelids": ["FLS/AIRLINK/4", "FLS/SYSTEM-M/4", "1GANG/SWITCH/1"],

Now I can parse the button events.

But you need too the DDF for this device ?
You can make a PR with both file here Pull requests · dresden-elektronik/deconz-rest-plugin · GitHub

Or I can do it if you share the complete file and want I make it

This is the DDF code created, the button works out of the box.
Do you think something is missing?

“schema”: “devcap1.schema.json”,
“manufacturername”: “Schneider Electric”,
“modelid”: “1GANG/SWITCH/1”,
“product”: “1GANG/SWITCH/1”,
“sleeper”: false,
“status”: “Draft”,
“subdevices”: [
{
“type”: “$TYPE_ON_OFF_LIGHT”,
“restapi”: “/lights”,
“uuid”: [
“$address.ext”,
“0x01”
],
“items”: [
{
“name”: “attr/id”
},
{
“name”: “attr/lastannounced”
},
{
“name”: “attr/lastseen”
},
{
“name”: “attr/manufacturername”
},
{
“name”: “attr/modelid”
},
{
“name”: “attr/name”
},
{
“name”: “attr/swversion”
},
{
“name”: “attr/type”
},
{
“name”: “attr/uniqueid”
},
{
“name”: “state/alert”,
“description”: “The currently active alert effect.”,
“default”: “none”
},
{
“name”: “state/on”,
“description”: “True when device is on; false when off.”,
“refresh.interval”: 5
},
{
“name”: “state/reachable”
}
]
},
{
“type”: “$TYPE_SWITCH”,
“restapi”: “/sensors”,
“uuid”: [
“$address.ext”,
“0x15”,
“0x0006”
],
“items”: [
{
“name”: “attr/id”
},
{
“name”: “attr/lastannounced”
},
{
“name”: “attr/lastseen”
},
{
“name”: “attr/manufacturername”
},
{
“name”: “attr/modelid”
},
{
“name”: “attr/name”
},
{
“name”: “attr/swversion”
},
{
“name”: “attr/type”
},
{
“name”: “attr/uniqueid”
},
{
“name”: “config/on”
},
{
“name”: “config/reachable”
},
{
“name”: “state/buttonevent”,
“description”: “The last received button event.”
},
{
“name”: “state/lastupdated”
}
]
}
]
}

Ha, you are probably right, the buttonmap file can be used natively without DDF probably.
But it can work too without the buttonmap no ?
The light entry can work alone ?

(For information you are not using the DDF, it have the “draft” status).

So you are using the ZHAswitch in same time than the “light” entry ? The “light” entry is not enought ?

The buttonmap is needed. Without it no buttonevents are passed.
And yes, I’m using ZHA switch together with the light.
The light entry is also working alone but in the DDF no bindings are shown. So it is probably a good idea to set up a full DDF. Shall I open a request on GitHub or post all relevant nodes here?

Can this topic please continue on Github?