Skip to content

Commit

Permalink
Merge pull request #1229 from nesror/master
Browse files Browse the repository at this point in the history
add support for Linptech Wireless Button KS1Pro BLE KS1PBB
  • Loading branch information
AlexxIT authored Dec 5, 2023
2 parents 0707fc1 + 6587fde commit 1d64266
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,9 +1282,22 @@
],
"ttl": "6h" # battery every 6 hours
}, {
# https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:temperature-humidity-sensor:0000A00A:linp-ks1bp:1
15895: ["Linptech", "Wireless Button KS1Pro", "KS1PBB"],
"spec": [
MiBeacon, BLEAction, BLEHumidity, BLETemperature, BLEBattery
MiBeacon, BLEAction, BLEHumidity, BLETemperature, BLEBattery,
MathConv("temperature", mi="2.p.1001", min=-30, max=100, round=1),
MathConv("humidity", mi="2.p.1008", min=0, max=100, round=1),
Converter("battery", mi="4.p.1003"),
BLEEvent("action", mi="5.e.1012", map={
1: "button_1_single", 2: "button_2_single", 3: "button_3_single", 4: "button_4_single"
}),
BLEEvent("action", mi="5.e.1013", map={
1: "button_1_double", 2: "button_2_double", 3: "button_3_double", 4: "button_4_double"
}),
BLEEvent("action", mi="5.e.1014", map={
1: "button_1_hold", 2: "button_2_hold", 3: "button_3_hold", 4: "button_4_hold"
}),
],
"ttl": "6h" # battery every 6 hours
}, {
Expand Down Expand Up @@ -1321,6 +1334,15 @@
EventConv("motion", mi="2.e.1008", value=True),
Converter("battery", mi="3.p.1003"),
],
}, {
13617: ["xiaomi", "Motion Sensor 2s", "XMPIRO25XS"],
"spec": [
MiBeacon, BLEMotion, BLEIlluminance, BLEBattery,
Converter("idle_time", "sensor", enabled=False),
Converter("illuminance", mi="2.p.1005"),
EventConv("motion", mi="2.e.1008", value=True),
Converter("battery", mi="3.p.1003"),
],
}, {
# https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:remote-control:0000A021:huca-wx8:1
12382: ["H+", "Wireless Button", "huca-wx8"],
Expand Down

0 comments on commit 1d64266

Please sign in to comment.