From 05e45e09bb2500aad64ce1518369826360de0d5c Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sun, 26 Jan 2025 16:20:52 +0100 Subject: [PATCH] [lifx] Add support for new LIFX products (#18191) Allows for discovering all the new LIFX products and their features: * LIFX Ceiling 13x26" * LIFX Outdoor Permanent See: * https://github.com/LIFX/products/blob/master/products.json * https://www.lifx.com/products/ceiling-26x13-white-trim * https://www.lifx.com/products/outdoor-permanent-lights Signed-off-by: Wouter Born --- bundles/org.openhab.binding.lifx/README.md | 4 +++- .../org/openhab/binding/lifx/internal/LifxProduct.java | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.lifx/README.md b/bundles/org.openhab.binding.lifx/README.md index cf3a19d514b..f1a81552f3d 100644 --- a/bundles/org.openhab.binding.lifx/README.md +++ b/bundles/org.openhab.binding.lifx/README.md @@ -19,7 +19,8 @@ The following table lists the thing types of the supported LIFX devices: | LIFX A21 1600lm | colorlight | | LIFX BR30 | colorlight | | LIFX Candle | colorlight | -| LIFX Ceiling | colorlight | +| LIFX Ceiling 13x26" | colorlight | +| LIFX Ceiling 15" | colorlight | | LIFX Downlight | colorlight | | LIFX GU10 | colorlight | | LIFX Mini Color | colorlight | @@ -36,6 +37,7 @@ The following table lists the thing types of the supported LIFX devices: | LIFX Beam | colormzlight | | LIFX Neon | colormzlight | | LIFX Outdoor Neon | colormzlight | +| LIFX Outdoor Permanent | colormzlight | | LIFX String | colormzlight | | LIFX Z | colormzlight | | | | diff --git a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxProduct.java b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxProduct.java index 179c755ce78..6b6a8824123 100644 --- a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxProduct.java +++ b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/LifxProduct.java @@ -160,18 +160,22 @@ public enum LifxProduct { PRODUCT_173(173, "LIFX Round Path", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_174(174, "LIFX Square Path", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_175(175, "LIFX PAR38", new Features(TR_1500_9000, COLOR)), - PRODUCT_176(176, "LIFX Ceiling", new Features(TR_1500_9000, COLOR, MATRIX)), - PRODUCT_177(177, "LIFX Ceiling", new Features(TR_1500_9000, COLOR, MATRIX)), + PRODUCT_176(176, "LIFX Ceiling 15\"", new Features(TR_1500_9000, COLOR, MATRIX)), + PRODUCT_177(177, "LIFX Ceiling 15\"", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_181(181, "LIFX Color", new Features(TR_1500_9000, COLOR)), PRODUCT_182(182, "LIFX Color", new Features(TR_1500_9000, COLOR)), PRODUCT_185(185, "LIFX Candle", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_186(186, "LIFX Candle", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_187(187, "LIFX Candle", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_188(188, "LIFX Candle", new Features(TR_1500_9000, COLOR, MATRIX)), + PRODUCT_201(201, "LIFX Ceiling 13x26\"", new Features(TR_1500_9000, COLOR, MATRIX)), + PRODUCT_202(202, "LIFX Ceiling 13x26\"", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_203(203, "LIFX String", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)), PRODUCT_204(204, "LIFX String", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)), PRODUCT_205(205, "LIFX Neon", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)), PRODUCT_206(206, "LIFX Neon", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)), + PRODUCT_213(213, "LIFX Outdoor Permanent", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)), + PRODUCT_214(214, "LIFX Outdoor Permanent", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)), PRODUCT_215(215, "LIFX B10 Candle", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_216(216, "LIFX B10 Candle", new Features(TR_1500_9000, COLOR, MATRIX)), PRODUCT_217(217, "LIFX T10 Candle", new Features(TR_1500_9000, COLOR, MATRIX)),