AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.47k stars 345 forks source link

Add support for Chuangmi Wall Switch (with N) #1062

Closed catsimple closed 1 year ago

catsimple commented 1 year ago
}, {
    # https://home.miot-spec.com/spec/chuangmi.switch.mesh
    1350: ["Chuangmi", "Single Wall Switch K1-A (with N)", "chuangmi.switch.mesh"],
    "spec": [
        Converter("switch", "switch", mi="2.p.1"),
        MapConv("indicator light", "switch", mi="3.p.3", map={1: False, 2: True}),
    ]
}, {
    # https://home.miot-spec.com/spec/chuangmi.switch.meshb01
    1490: ["Chuangmi", "Double Wall Switch K1-B (with N)", "chuangmi.switch.meshb01"],
    "spec": [
        Converter("left switch", "switch", mi="2.p.1"),
        Converter("right switch", "switch", mi="3.p.1"),
        MapConv("indicator light", "switch", mi="4.p.3", map={1: False, 2: True}),
    ]

Enviroment: Device Xiaomi Multimode Gateway CN v1.5.4_0090 XiaomiGateway3: v3.2.1 Homeassistant: 2023.5.4

AlexxIT commented 1 year ago

Thanks!

AlexxIT commented 1 year ago

https://github.com/AlexxIT/XiaomiGateway3/releases/tag/v3.3.0