Skip to content

Commit

Permalink
DDF for Adeo LDSENK09 Key FOB 4 buttons (#6990)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smanar committed Jul 24, 2023
1 parent 386272b commit ccc7203
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 1 deletion.
13 changes: 13 additions & 0 deletions button_maps.json
Expand Up @@ -113,6 +113,8 @@
"IAS_ACE": {
"ARM": 0,
"EMERGENCY": 2,
"FIRE": 3,
"SOS": 4,
"STATUS_CHANGE": 0
},
"IAS_ZONE": {
Expand Down Expand Up @@ -664,6 +666,17 @@
[2, "0x16", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_4", "S_BUTTON_ACTION_LONG_RELEASED", "Stop"]
]
},
"AdeoKeyfobMap": {
"vendor": "Adeo",
"doc": "4 buttons remotes from Adeo",
"modelids": ["LDSENK09"],
"map": [
[1, "0x01", "IAS_ACE", "ARM", "3", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm all zones"],
[1, "0x01", "IAS_ACE", "ARM", "1", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm day/home zones only"],
[1, "0x01", "IAS_ACE", "ARM", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "Disarm"],
[1, "0x01", "IAS_ACE", "SOS", "0", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "Sos"]
]
},
"xiaomiSwitchCtrlNeutralMap": {
"vendor": "Xiaomi",
"doc": "QBKG03LM (dual rocker) and QBKG04LM (single rocker) switch",
Expand Down
2 changes: 1 addition & 1 deletion de_web_plugin.cpp
Expand Up @@ -5218,7 +5218,7 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A
{
ok = true;
}
else if (zclFrame.commandId() == 0x02 && zclFrame.payload().isEmpty())
else if ((zclFrame.commandId() == 0x02 || zclFrame.commandId() == 0x03 || zclFrame.commandId() == 0x04) && zclFrame.payload().isEmpty())
{
ok = true;
}
Expand Down
91 changes: 91 additions & 0 deletions devices/adeo/ldsenk09_keyfob.json
@@ -0,0 +1,91 @@
{
"schema": "devcap1.schema.json",
"manufacturername": "ADEO",
"modelid": "LDSENK09",
"product": "LDSENK09",
"status": "Gold",
"vendor": "Adeo",
"sleeper": true,
"subdevices": [
{
"type": "$TYPE_SWITCH",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0500"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0401",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0500"
],
"out": [
"0x0501"
]
},
"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/enrolled",
"public": false
},
{
"name": "config/on"
},
{
"name": "config/pending"
},
{
"name": "config/reachable"
},
{
"name": "state/buttonevent",
"awake": true
},
{
"name": "state/lastupdated"
},
{
"name": "state/lowbattery"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0501"
}
]
}

0 comments on commit ccc7203

Please sign in to comment.