diff --git a/custom_components/xiaomi_gateway3/core/converters/devices.py b/custom_components/xiaomi_gateway3/core/converters/devices.py index 322b13cd..0f8f4c38 100644 --- a/custom_components/xiaomi_gateway3/core/converters/devices.py +++ b/custom_components/xiaomi_gateway3/core/converters/devices.py @@ -2298,8 +2298,27 @@ MapConv("mode", "select", mi="2.p.5", map={ 0: "default", 1: "doublmode", 2: "leftmode", 3: "rightmode" }, enabled=False), - ] + ], + "ttl": "7d", }, { + # https://home.miot-spec.com/spec/090615.curtain.crus6 + 15069: ["PTX", "Curtain Motor", "crus6"], + "spec": [ + MapConv("motor", "cover", mi="2.p.1", map={0: "stop", 1: "open", 2: "close"}), + Converter("target_position", mi="2.p.2"), + CurtainPosConv("position", mi="2.p.3", parent="motor"), + Converter("motor_reverse", "switch", mi="2.p.4", enabled=False), + MapConv("mode", "select", mi="2.p.5", map={ + 0: "default", 1: "doublmode", 2: "leftmode", 3: "rightmode" + }, enabled=False), + MapConv("run_state", mi="2.p.6", parent="motor", map={ + 0: "stop", 1: "opening", 2: "closing" + }), + MapConv("fault", "sensor", mi="2.p.7", map={ + 0: "No faults", 1: "Faults"}, enabled=False), + ], + "ttl": "7d", +}, { 4722: ["Xiaomi", "Curtain Motor", "MJZNCL02LM"], "spec": [ MapConv("motor", "cover", mi="2.p.1", map={