Skip to content

Commit

Permalink
Merge pull request #1367 from manymuch/master
Browse files Browse the repository at this point in the history
Add support for xijia1.curtain.x3
  • Loading branch information
AlexxIT authored May 24, 2024
2 parents 3b335c0 + 704dc75 commit 4ba3fdc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,17 @@
# BoolConv("fault", "sensor", mi="2.p.1", entity=ENTITY_DISABLED),
# Converter("mode", "sensor", mi="2.p.3"), # only auto
],
}, {
19363: ["Xijia", "Curtain Motor", "xijia1.curtain.x3"],
"spec": [
MapConv("motor", "cover", mi="2.p.1", map={0: "close", 1: "stop", 2: "open"}),
BaseConv("target_position", mi="2.p.4"),
CurtainPosConv("position", mi="2.p.3"),
MapConv("run_state", mi="2.p.2", map={0: "closing", 1: "stop", 2: "opening"}),
BaseConv("battery", "sensor", mi="3.p.1"), # percent
BoolConv("motor_reverse", "switch", mi="2.p.5"), # uint8, config
MapConv("battery_charging", "binary_sensor", mi="3.p.2", map={1: True, 2: False}), # diagnostic
],
}, {
"lumi.remote.acn003": ["Aqara", "Single Wall Button E1 CN", "WXKG16LM"],
# https://github.com/niceboygithub/AqaraGateway/pull/118/files
Expand Down

0 comments on commit 4ba3fdc

Please sign in to comment.