Skip to content

Commit

Permalink
DDF for LDS battery switch (ZBT-DIMSwitch-D0000) (#7027)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smanar committed Jun 4, 2023
1 parent 8f6e008 commit 1fe092a
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 1 deletion.
2 changes: 1 addition & 1 deletion button_maps.json
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@
"ZBT-DIMController-D0800Map": {
"vendor": "LDS",
"doc": "Mueller-Licht tint dimmer",
"modelids": ["ZBT-DIMController-D0800"],
"modelids": ["ZBT-DIMController-D0800", "ZBT-DIMSwitch-D0000"],
"buttons": [
{"S_BUTTON_1": "On/Off"},
{"S_BUTTON_2": "Dim Up"},
Expand Down
86 changes: 86 additions & 0 deletions devices/lds/ZBT-DIMSwitch-D0000_remote.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"schema": "devcap1.schema.json",
"manufacturername": "LDS",
"modelid": "ZBT-DIMSwitch-D0000",
"product": "LDS battery switch",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_SWITCH",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"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/battery",
"refresh.interval": 86400,
"awake": true,
"parse": {
"at": "0x0021",
"cl": "0x0001",
"ep": 1,
"eval": "Item.val = Attr.val / 2;",
"fn": "zcl"
}
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/buttonevent"
},
{
"name": "state/lastupdated"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0006"
},
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0008"
}
]
}

0 comments on commit 1fe092a

Please sign in to comment.