Skip to content

Commit 629dab4

Browse files
committed
Add support for Linptech LX2BCW, KS2 and enhance motion sensor hs3
1 parent 0716f36 commit 629dab4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1685,10 +1685,12 @@
16851685
# https://github.com/AlexxIT/XiaomiGateway3/pull/1118
16861686
13617: ["xiaomi", "Motion Sensor 2s", "XMPIRO25XS", "xiaomi.motion.pir1"],
16871687
"spec": [
1688+
# main sensors
16881689
ConstConv("motion", "binary_sensor", mi="2.e.1008", value=True),
16891690
BaseConv("illuminance", "sensor", mi="2.p.1005"),
1690-
MathConv("no_motion_duration", "sensor", mi="2.p.1024", entity={"enabled": False, "units": UNIT_SECONDS, "icon": "mdi:timer"}),
16911691
BaseConv("custom_no_motion_time", "sensor", mi="2.p.1053", entity={"units": UNIT_MINUTES, "icon": "mdi:timer"}),
1692+
# other sensors
1693+
MathConv("no_motion_duration", "sensor", mi="2.p.1024", entity={"enabled": False, "units": UNIT_SECONDS, "icon": "mdi:timer"}),
16921694
BaseConv("battery", "sensor", mi="3.p.1003"),
16931695
],
16941696
}, {

0 commit comments

Comments
 (0)