Skip to content

Commit

Permalink
add xiaomi.pet_waterer.002
Browse files Browse the repository at this point in the history
  • Loading branch information
LOVE2CMOL committed Sep 25, 2024
1 parent 82ad2d9 commit 9967dad
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,19 @@
MapConv("action", mi="5.e.1013.p.1", map={1: BUTTON_1_DOUBLE, 2: BUTTON_2_DOUBLE, 3: BUTTON_3_DOUBLE, 4: BUTTON_4_DOUBLE}),
MapConv("action", mi="5.e.1014.p.1", map={1: BUTTON_1_HOLD, 2: BUTTON_2_HOLD, 3: BUTTON_3_HOLD, 4: BUTTON_4_HOLD}),
]
}, {
# xiaomi.pet_waterer.002
# https://home.miot-spec.com/spec/xiaomi.pet_waterer.002
14746: ["Xiaomi", "Pet Drinking Fountain", "xiaomi.pet_waterer.002"],
"spec": [
MapConv("out_water_mode", "sensor", mi="2.p.1020", map={0: "Pir Mode", 1: "Interval Mode"}),
MapConv("out_water_param", "sensor", mi="2.p.2", map={0: "Pir Finish", 1: "Interval Finish", 2: "Manual Finish", 3: "Pir Upper Limit Finish", 4: "Water Consumption Failure", 5: "Pump Blocked Failure", 6: "No Approach Finish"}),
BaseConv("device_fault", "sensor", mi="2.p.1048"),
BaseConv("day_out_water_times", "sensor", mi="2.p.1056"),
BaseConv("water_shortage_status", "sensor", mi="2.p.1067"),
BaseConv("filter_life_level", "sensor", mi="3.p.1076"),
BaseConv("battery_level", "sensor", mi="5.p.1003"),
],
}, {
# BLE devices can be supported witout spec. New spec will be added "on the fly" when
# device sends them. But better to rewrite right spec for each device
Expand Down

0 comments on commit 9967dad

Please sign in to comment.