Skip to content

Commit 149ee22

Browse files
committed
Add support for Chuanxiang Magnetic Wall Charging Socket zjcx.plug.qcsw02
1 parent cb999b4 commit 149ee22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5316,6 +5316,15 @@
53165316
BaseConv("flex_switch", "switch", mi="2.p.12", entity=ENTITY_CONFIG),
53175317
MapConv("mode","select",mi="2.p.13", map={0: "None", 1: "Day", 2: "Night", 3: "Warmth", 4: "TV", 5: "Reading", 6: "Computer", 7: "Sleep", 8: "Wakeup"}),
53185318
],
5319+
}, {
5320+
# https://home.miot-spec.com/spec/zjcx.plug.qcsw02
5321+
25140: ["Chuanxiang", "Magnetic Wall Charging Socket", "zjcx.plug.qcsw02"],
5322+
"spec": [
5323+
BaseConv("switch", "switch", mi="2.p.1"),
5324+
BaseConv("indicator_light", "switch", mi="5.p.1"),
5325+
BaseConv("magnetic_state", "binary_sensor", mi="6.p.1"), # Magnetic State
5326+
MapConv("power_on_state", "select", mi="2.p.5", map={0: "memory", 1: "on", 2: "off"}),
5327+
]
53195328
}, {
53205329
"default": "mesh", # default Mesh device
53215330
"spec": [

0 commit comments

Comments
 (0)