Skip to content

Commit 14ab09a

Browse files
committed
Add new LeMesh Switch Sensor model #835
1 parent 0adae61 commit 14ab09a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • custom_components/xiaomi_gateway3/core/converters

custom_components/xiaomi_gateway3/core/converters/devices.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,14 @@
18051805

18061806
Converter("led", "switch", mi="4.p.1"),
18071807
],
1808+
}, {
1809+
# https://github.com/AlexxIT/XiaomiGateway3/issues/835
1810+
# https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:switch:0000A003:lemesh-sw1a02:1:0000C808
1811+
3001: ["LeMesh", "Switch Sensor", "lemesh.switch.sw1a02"],
1812+
"spec": [
1813+
Converter("switch", "switch", mi="2.p.1"), # bool
1814+
BoolConv("led", "switch", mi="5.p.1", enabled=False), # uint8
1815+
],
18081816
}, {
18091817
"default": "mesh", # default Mesh device
18101818
"spec": [

0 commit comments

Comments
 (0)