Skip to content

Commit

Permalink
Merge pull request #1504 from swas/patch-RGB_camping_lamp
Browse files Browse the repository at this point in the history
Add rgb_color converter to Multifunctional Camping Lantern
  • Loading branch information
AlexxIT authored Nov 29, 2024
2 parents 43a3c39 + 6ffa8b5 commit 87a8dbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3644,7 +3644,8 @@
BaseConv("light", "light", mi="2.p.1"),
BrightnessConv("brightness", mi="2.p.2", max=100),
ColorTempKelvin("color_temp", mi="2.p.3", mink=2700, maxk=5000),
MathConv("color", "number", mi="2.p.4", min=1, max=16777215),
RGBColor("rgb_color", mi="2.p.4"),
MapConv("color_mode", mi="2.p.6", map={1: "rgb", 2: "color_temp"}),
MapConv("mode", "select", mi="2.p.5", map={1: "Auto", 2: "Day", 3: "Color", 4: "Warmth", 5: "Leisure"}),
BaseConv("battery", "sensor", mi="3.p.1"),
MapConv("main_ charging_state", "sensor", mi="3.p.2", map={0: "Not Plug", 1: "Plug In"}),
Expand Down

0 comments on commit 87a8dbe

Please sign in to comment.