Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add xiaomi.pet_waterer.002 #1460

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading