Skip to content

Commit

Permalink
Merge pull request #1203 from JonathanKang/add-support-for-pmfbj.ligh…
Browse files Browse the repository at this point in the history
…t.xsx340

Add support for two Panasonic ceiling lights
  • Loading branch information
AlexxIT authored Nov 6, 2023
2 parents f625291 + 5505132 commit 141d197
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3093,6 +3093,19 @@
MathConv("power", "sensor", mi="3.p.6", round=1),
Converter("led", "light", mi="4.p.1"),
],
}, {
7082: ["pmfbj", "Panasonic Ceiling Light", "pmfbj.light.xsx340"],
6857: ["pmfbj", "Panasonic Ceiling Light", "pmfbj.light.xsx341"],
# https://home.miot-spec.com/s/pmfbj.light.xsx340
# https://home.miot-spec.com/s/pmfbj.light.xsx341
"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", mink=2700, maxk=6500),
MapConv("mode", "select", mi="2.p.4", map={
0: "default", 1: "daily", 2: "leisure", 3: "comfortable", 4: "night", 5: "SY"
})
]
}, {
"default": "mesh", # default Mesh device
"spec": [
Expand Down

0 comments on commit 141d197

Please sign in to comment.