From 8d1c953a2ea7bfcdb22217e1bdac2db0700ab5bc Mon Sep 17 00:00:00 2001 From: Kassiopei <60846549+X-Rayven@users.noreply.github.com> Date: Wed, 5 Feb 2025 22:25:16 +0100 Subject: [PATCH] Add DDF for xioami QBKG38LM --- devices/xiaomi/xiaomi_qbkg38lm_e1_switch.json | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 devices/xiaomi/xiaomi_qbkg38lm_e1_switch.json diff --git a/devices/xiaomi/xiaomi_qbkg38lm_e1_switch.json b/devices/xiaomi/xiaomi_qbkg38lm_e1_switch.json new file mode 100644 index 0000000000..41f8be9f1c --- /dev/null +++ b/devices/xiaomi/xiaomi_qbkg38lm_e1_switch.json @@ -0,0 +1,88 @@ +{ + "schema": "devcap1.schema.json", + "manufacturername": "$MF_LUMI", + "modelid": "lumi.switch.b1lc04", + "product": "Aqara Smart switch without neutral wire QBKG38LM", + "sleeper": false, + "status": "Gold", + "path": "/devices/xiaomi_qbkg38lm_e1_switch.json", + "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", + "default": "none" + }, + { + "name": "state/on", + "refresh.interval": 300, + "read": { + "at": "0x0000", + "cl": "0x0006", + "ep": 0, + "fn": "zcl:attr" + }, + "parse": { + "at": "0x0000", + "cl": "0x0006", + "ep": 0, + "eval": "Item.val = Attr.val", + "fn": "zcl:attr" + } + }, + { + "name": "state/reachable" + } + ] + } + ], + "bindings": [ + { + "bind": "unicast", + "src.ep": 1, + "dst.ep": 1, + "cl": "0x0006", + "report": [ + { + "at": "0x0000", + "dt": "0x10", + "min": 1, + "max": 300 + } + ] + } + ] +} \ No newline at end of file