Skip to content

Commit 007adde

Browse files
committed
Add Linptech Human Presence Downlight and Smart Downlight
1 parent d6c71da commit 007adde

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4557,6 +4557,29 @@
45574557
BoolConv("led", "switch", mi="4.p.1"), # uint8, config
45584558
MapConv("power_on_state", "select", mi="2.p.2", map={0: "Default", 1: "Off", 2: "On"}), # config
45594559
],
4560+
}, {
4561+
25137: ["Linptech", "Human Presence Downlight", "LD6B-CW-T8R", "linp.light.ld6bcw"],
4562+
"spec": [
4563+
BaseConv("light", "light", mi="2.p.1"),
4564+
BrightnessConv("brightness", mi="2.p.2", max=100),
4565+
ColorTempKelvin("color_temp", mi="2.p.3", mink=2700, maxk=6500),
4566+
MapConv("mode", "select", mi="2.p.7", map={0: "None", 1: "TV", 2: "Reading", 3: "Computer", 4: "Hospitality", 5: "Entertainment", 6: "Lighting", 7: "Night light", 8: "Warmth"}),
4567+
MapConv("power_on_state", "select", mi="2.p.9", map={0: "Default", 1: "On", 2: "Off"}),
4568+
BoolConv("occupancy", "sensor", mi="5.p.1"),
4569+
BaseConv("occupancy_status", "sensor", mi="5.p.1", entity=ENTITY_DIAGNOSTIC),
4570+
BaseConv("no_one_duration", "sensor", mi="5.p.2"),
4571+
BaseConv("has_someone_duration", "sensor", mi="2.p.3"),
4572+
BaseConv("illuminance", "sensor", mi="5.p.5"),
4573+
],
4574+
}, {
4575+
25417: ["Linptech", "Smart Downlight", "LD6B-CW-T8", "linp.light.ld5bcw"],
4576+
"spec": [
4577+
BaseConv("light", "light", mi="2.p.1"),
4578+
BrightnessConv("brightness", mi="2.p.2", max=100),
4579+
ColorTempKelvin("color_temp", mi="2.p.3", mink=2700, maxk=6500),
4580+
MapConv("mode", "select", mi="2.p.7", map={0: "None", 1: "TV", 2: "Reading", 3: "Computer", 4: "Hospitality", 5: "Entertainment", 6: "Lighting", 7: "Night light", 8: "Warmth"}),
4581+
MapConv("power_on_state", "select", mi="2.p.9", map={0: "Default", 1: "On", 2: "Off"}),
4582+
],
45604583
}, {
45614584
"default": "mesh", # default Mesh device
45624585
"spec": [

0 commit comments

Comments
 (0)