Skip to content

Commit

Permalink
Merge pull request #834 from louliangsheng/master
Browse files Browse the repository at this point in the history
Support Mijia Smart Charging Table Lamp
  • Loading branch information
AlexxIT authored Oct 13, 2022
2 parents 9942190 + dcfaf06 commit d334ec4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,18 @@
],
"ttl": "1440m"
}, {
4737: ["Xiaomi", "Smart Charging Table Lamp", "MJTD04YL"],
"spec": [
Converter("light", "light", mi="2.p.1"),
BrightnessConv("brightness", mi="2.p.2", parent="light", max=100),
ColorTempKelvin("color_temp", mi="2.p.3", parent="light"),
Converter("battery", "sensor", mi="4.p.1"),
MapConv("battery_charging", "binary_sensor", mi="4.p.2", map={
1: True, 2: False ,3: False,
}, enabled=False),
],
"ttl": "7d",
},{
# urn:miot-spec-v2:device:light:0000A001:yeelink-nl2:1:0000C81D 米家智能光感夜灯
4736: ["Xiaomi", "Mesh Night Light", "MJYD05YL"],
"spec": [
Expand Down

0 comments on commit d334ec4

Please sign in to comment.