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.4k stars 334 forks source link

Please add giot.remote.v51kwm #1382

Open fenglou777 opened 2 months ago

fenglou777 commented 2 months ago

https://home.mi.com/views/introduction.html?region=cn&pdid=16191&model=giot.remote.v51kwm https://home.miot-spec.com/s/giot.remote.v51kwm

AlexxIT commented 2 months ago

You have to try to add it yourself. It shouldn't be difficult. https://github.com/AlexxIT/XiaomiGateway3?tab=readme-ov-file#add-new-device

fenglou777 commented 2 months ago

手工添加无法支持 1718697733022 1718697820990

wolfit50 commented 1 month ago

参考一下,这个是三键的,一键两键删,四键六键八键加

{
    16181: ["GIOT", "V5 Wireless Three Key Switch", "GIOT-V53KWM", "giot.remote.v53kwm"],
    "spec": [
        BaseConv("action", "sensor"),
        MapConv("action", mi="2.e.1012.p.1", map={1: BUTTON_1_SINGLE, 2: BUTTON_2_SINGLE, 3: BUTTON_3_SINGLE}),
        MapConv("action", mi="2.e.1013.p.1", map={1: BUTTON_1_DOUBLE, 2: BUTTON_2_DOUBLE, 3: BUTTON_3_DOUBLE}),
        MapConv("action", mi="2.e.1014.p.1", map={1: BUTTON_1_HOLD, 2: BUTTON_2_HOLD, 3: BUTTON_3_HOLD}),
    ],
}