{
13203: ["Linptech", "Casement Window Driver WD2", "linp.wopener.wd2lb"],
"spec": [
MapConv("motor", "cover", mi="2.p.1", map={0: "stop", 1: "open", 2: "close"}),
BaseConv("target_position", mi="2.p.3"),
CurtainPosConv("position", mi="2.p.2"),
BaseConv("battery", "sensor", mi="3.p.1", entity=ENTITY_LAZY),
MapConv("battery_status", "sensor", mi="3.p.3", map={0: "Idle", 1: "Adapter", 2: "Solar", 3: "Protected", 4: "Adapter-float"}),
MapConv("anti_pinch_sensitivity", "select", mi="4.p.2", map={0: "Very_low", 1: "Low", 2: "Medium", 3:"High"}),
MathConv("target-position", "number", mi="2.p.3", min=0, max=100, entity=ENTITY_CONFIG),
],
}
这样才能控制百分比开合,同时输入也可以
我也不知道为什么
但是反正这样才可以
|