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 more detail about changing state [Loock Smart Lock V5] #1469

Merged
merged 1 commit into from
Oct 8, 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
11 changes: 10 additions & 1 deletion custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,16 @@
# small battery sensor
BaseConv("battery", "sensor", mi="4.p.1003"),
# charging state
BaseConv("changing", "sensor", mi="4.p.1034"),
MapConv("changing", "sensor", mi="4.p.1034", map={
0: 'All Not Inserted',
1: 'Large Inserted',
2: 'Small Inserted',
3: 'Large And Small Inserted',
4: 'USB Inserted',
5: 'USB Inserted And Large Inserted',
6: 'USB Inserted And Small Inserted',
7: 'All Inserted'
}),
# doorbell
ConstConv("action", mi="5.e.1006", value="doorbell"),
# doorbell timestamp
Expand Down
Loading