from controllers import ( CT_RANGE, DAYLIGHT_MIREDS, RGB_BLUE, RGB_GREEN, RGB_RED, define_lights, ) LIGHTS = define_lights( { "Plant Light Left": { "supported_color_modes": ("brightness",), "controllers": { "fixed_a": { "name": "Plant Light Left", "mireds": CT_RANGE, "color_temp": { "ww": {"color": DAYLIGHT_MIREDS, "brightness": 9000}, }, }, }, }, "Plant Light Right": { "supported_color_modes": ("brightness",), "controllers": { "fixed_b": { "name": "Plant Light Right", "mireds": CT_RANGE, "color_temp": { "ww": {"color": DAYLIGHT_MIREDS, "brightness": 7000}, }, }, }, }, "Floor Lamp Plug": { "supported_color_modes": ("onoff",), "controllers": { "plug_a": { "name": "Floor Lamp Plug", "onoff": { "w": {"color": DAYLIGHT_MIREDS, "brightness": 8000, "label": "color_temp"}, }, }, }, }, "Desk Lamp Plug": { "supported_color_modes": ("onoff",), "controllers": { "plug_b": { "name": "Desk Lamp Plug", "onoff": { "w": {"color": DAYLIGHT_MIREDS, "brightness": 8000, "label": "color_temp"}, }, }, }, }, "Living Room Ceiling": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "mixed_rgb": { "name": "Living Room Ceiling RGB", "rgb": { "r": {"color": RGB_RED, "brightness": 3000}, "g": {"color": RGB_GREEN, "brightness": 2480}, "b": {"color": RGB_BLUE, "brightness": 3000}, }, }, "mixed_ct": { "name": "Living Room Ceiling CCT", "mireds": CT_RANGE, "color_temp": { "ww": {"color": 500, "brightness": 25600}, "cw": {"color": 153, "brightness": 56000}, }, }, }, }, "Hallway Floor Light": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "hall_floor": { "name": "Hallway Floor Light", "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}, }, }, }, }, "Hallway Corner Light": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "hall_corner": { "name": "Hallway Corner Light", "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}, }, }, }, }, "Hallway Cabinet Lights": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "hall_cabinets": { "name": "Hallway Cabinet Lights", "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}, }, }, }, }, "Kitchen Counter Lights": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "kitchen_counter": { "name": "Kitchen Counter Lights", "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}, }, }, }, }, "Bathroom Ceiling Light": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "bath_ceiling_1": { "name": "Bathroom Ceiling Light 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": "Bathroom Ceiling Light 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": "Bathroom Ceiling Light 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}, }, }, }, }, "Bathroom Mirror Light": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "bath_mirror": { "name": "Bathroom Mirror Light", "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}, }, }, }, }, "Bedroom Left Lamp": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "bedroom_w": { "name": "Bedroom Left Lamp", "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}, }, }, }, }, "Bedroom Right Lamp": { "supported_color_modes": ("rgb", "color_temp"), "controllers": { "bedroom_e": { "name": "Bedroom Right Lamp", "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}, }, }, }, }, } )