Skip to content

Commit

Permalink
according to this spac
Browse files Browse the repository at this point in the history
  • Loading branch information
Meteor Liu committed Oct 8, 2024
1 parent f12eff2 commit c25f0bb
Showing 1 changed file with 10 additions and 1 deletion.
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

0 comments on commit c25f0bb

Please sign in to comment.