diff --git a/custom_components/xiaomi_gateway3/core/devices.py b/custom_components/xiaomi_gateway3/core/devices.py index 443d9f96..4dd51c4d 100644 --- a/custom_components/xiaomi_gateway3/core/devices.py +++ b/custom_components/xiaomi_gateway3/core/devices.py @@ -2010,6 +2010,18 @@ ConstConv("action", mi="3.e.1014", value="knob_press"), ], # "ttl": "7d" +}, { + #https://home.miot-spec.com/spec/line.remote.fwkge2 + 30883: ["LineHope", "Ark Fish Wireless Switch E2","AFWXKG220000", "line.remote.fwkge2"], + "spec": [ + # Action events (single/double/long press) + BaseConv("action", "sensor"), + ConstConv("action", mi="5.e.1012", value=BUTTON_SINGLE), + ConstConv("action", mi="5.e.1013", value=BUTTON_DOUBLE), + ConstConv("action", mi="5.e.1014", value=BUTTON_HOLD), + # Battery level + BaseConv("battery", "sensor", mi="4.p.1003"), + ], }, { 12183: ["Lockin", "Door Lock M20 Pro", "loock.lock.r2"], "spec": [