Files
ha-deconz-bridge/configs/example_lights.py
T
2026-05-30 15:44:40 +00:00

252 lines
9.6 KiB
Python

from configs.example_controllers import (
CT_RANGE,
DAYLIGHT_MIREDS,
RGB_BLUE,
RGB_GREEN,
RGB_RED,
define_lights,
)
LIGHTS = define_lights(
{
"Example Fixed White A": {
"supported_color_modes": ("brightness",),
"controllers": {
"fixed_a": {
"name": "Example Fixed White A",
"mireds": CT_RANGE,
"color_temp": {
"ww": {"color": DAYLIGHT_MIREDS, "brightness": 9000},
},
},
},
},
"Example Fixed White B": {
"supported_color_modes": ("brightness",),
"controllers": {
"fixed_b": {
"name": "Example Fixed White B",
"mireds": CT_RANGE,
"color_temp": {
"ww": {"color": DAYLIGHT_MIREDS, "brightness": 7000},
},
},
},
},
"Example Plug A": {
"supported_color_modes": ("onoff",),
"controllers": {
"plug_a": {
"name": "Example Plug A",
"onoff": {
"w": {"color": DAYLIGHT_MIREDS, "brightness": 8000, "label": "color_temp"},
},
},
},
},
"Example Plug B": {
"supported_color_modes": ("onoff",),
"controllers": {
"plug_b": {
"name": "Example Plug B",
"onoff": {
"w": {"color": DAYLIGHT_MIREDS, "brightness": 8000, "label": "color_temp"},
},
},
},
},
"Example Mixed North": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"mixed_rgb": {
"name": "Example Mixed North RGB",
"rgb": {
"r": {"color": RGB_RED, "brightness": 3000},
"g": {"color": RGB_GREEN, "brightness": 2480},
"b": {"color": RGB_BLUE, "brightness": 3000},
},
},
"mixed_ct": {
"name": "Example Mixed North CCT",
"mireds": CT_RANGE,
"color_temp": {
"ww": {"color": 500, "brightness": 25600},
"cw": {"color": 153, "brightness": 56000},
},
},
},
},
"Example Hall Floor": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"hall_floor": {
"name": "Example Hall Floor",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 2460},
"g": {"color": RGB_GREEN, "brightness": 2040},
"b": {"color": RGB_BLUE, "brightness": 1260},
},
"color_temp": {
"ww": {"color": 500, "brightness": 6000},
"cw": {"color": 153, "brightness": 16800},
},
},
},
},
"Example Hall Corner": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"hall_corner": {
"name": "Example Hall Corner",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 820},
"g": {"color": RGB_GREEN, "brightness": 680},
"b": {"color": RGB_BLUE, "brightness": 420},
},
"color_temp": {
"ww": {"color": 500, "brightness": 2000},
"cw": {"color": 153, "brightness": 5600},
},
},
},
},
"Example Hall Cabinets": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"hall_cabinets": {
"name": "Example Hall Cabinets",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 2460},
"g": {"color": RGB_GREEN, "brightness": 2040},
"b": {"color": RGB_BLUE, "brightness": 1260},
},
"color_temp": {
"ww": {"color": 500, "brightness": 6000},
"cw": {"color": 153, "brightness": 16800},
},
},
},
},
"Example Kitchen Counter": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"kitchen_counter": {
"name": "Example Kitchen Counter",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 1800},
"g": {"color": RGB_GREEN, "brightness": 2200},
"b": {"color": RGB_BLUE, "brightness": 1900},
},
"color_temp": {
"ww": {"color": 500, "brightness": 3800},
"cw": {"color": 153, "brightness": 3800},
},
},
},
},
"Example Bathroom Ceiling": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"bath_ceiling_1": {
"name": "Example Bathroom Ceiling 1",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 900},
"g": {"color": RGB_GREEN, "brightness": 420},
"b": {"color": RGB_BLUE, "brightness": 180},
},
"color_temp": {
"ww": {"color": 500, "brightness": 1700},
"cw": {"color": 153, "brightness": 2700},
},
},
"bath_ceiling_2": {
"name": "Example Bathroom Ceiling 2",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 900},
"g": {"color": RGB_GREEN, "brightness": 420},
"b": {"color": RGB_BLUE, "brightness": 180},
},
"color_temp": {
"ww": {"color": 500, "brightness": 1700},
"cw": {"color": 153, "brightness": 2700},
},
},
"bath_ceiling_3": {
"name": "Example Bathroom Ceiling 3",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 900},
"g": {"color": RGB_GREEN, "brightness": 420},
"b": {"color": RGB_BLUE, "brightness": 180},
},
"color_temp": {
"ww": {"color": 500, "brightness": 1700},
"cw": {"color": 153, "brightness": 2700},
},
},
},
},
"Example Bathroom Mirror": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"bath_mirror": {
"name": "Example Bathroom Mirror",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 4100},
"g": {"color": RGB_GREEN, "brightness": 3400},
"b": {"color": RGB_BLUE, "brightness": 2100},
},
"color_temp": {
"ww": {"color": 500, "brightness": 10000},
"cw": {"color": 153, "brightness": 28000},
},
},
},
},
"Example Bedroom West": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"bedroom_w": {
"name": "Example Bedroom West",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 1100},
"g": {"color": RGB_GREEN, "brightness": 810},
"b": {"color": RGB_BLUE, "brightness": 360},
},
"color_temp": {
"ww": {"color": 500, "brightness": 3200},
"cw": {"color": 153, "brightness": 4700},
},
},
},
},
"Example Bedroom East": {
"supported_color_modes": ("rgb", "color_temp"),
"controllers": {
"bedroom_e": {
"name": "Example Bedroom East",
"mireds": CT_RANGE,
"rgb": {
"r": {"color": RGB_RED, "brightness": 1100},
"g": {"color": RGB_GREEN, "brightness": 810},
"b": {"color": RGB_BLUE, "brightness": 360},
},
"color_temp": {
"ww": {"color": 500, "brightness": 3200},
"cw": {"color": 153, "brightness": 4700},
},
},
},
},
}
)