Skip to content

Commit

Permalink
[lifx] Add support for new LIFX products (openhab#16618)
Browse files Browse the repository at this point in the history
* [lifx] Add support for new LIFX products

Allows for discovering all the new LIFX products and their features including:

* LIFX Ceiling
* LIFX Outdoor Neon
* LIFX PAR38
* LIFX Round/Square Path
* LIFX Round Spot

See:

* https://github.com/LIFX/products/blob/master/products.json
* https://www.lifx.com/products/neon-flex-16ft-outdoor
* https://www.lifx.com/products/supercolor-1600lm-par38
* https://www.lifx.com/products/spot-light-round
* https://www.lifx.com/products/path-light-round
* https://www.lifx.com/products/path-light-square

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn authored and joni1993 committed Oct 15, 2024
1 parent 78c76b2 commit d0f6856
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
7 changes: 7 additions & 0 deletions bundles/org.openhab.binding.lifx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ The following table lists the thing types of the supported LIFX devices:
| Color 1000 | colorlight |
| Color 1000 BR30 | colorlight |
| LIFX A19 | colorlight |
| LIFX A21 1600lm | colorlight |
| LIFX BR30 | colorlight |
| LIFX Candle | colorlight |
| LIFX Ceiling | colorlight |
| LIFX Downlight | colorlight |
| LIFX GU10 | colorlight |
| LIFX Mini Color | colorlight |
| LIFX PAR38 | colorlight |
| LIFX Round Spot | colorlight |
| LIFX Round Path | colorlight |
| LIFX Square Path | colorlight |
| | |
| LIFX Clean | colorhevlight |
| | |
Expand All @@ -29,6 +35,7 @@ The following table lists the thing types of the supported LIFX devices:
| | |
| LIFX Beam | colormzlight |
| LIFX Neon | colormzlight |
| LIFX Outdoor Neon | colormzlight |
| LIFX String | colormzlight |
| LIFX Z | colormzlight |
| | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,33 @@ public enum LifxProduct {
PRODUCT_141(141, "LIFX Neon", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)),
PRODUCT_142(142, "LIFX Neon", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)),
PRODUCT_143(143, "LIFX String", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)),
PRODUCT_144(144, "LIFX String", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE));
PRODUCT_144(144, "LIFX String", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)),
PRODUCT_161(161, "LIFX Outdoor Neon", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)),
PRODUCT_162(162, "LIFX Outdoor Neon", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)),
PRODUCT_163(163, "LIFX A19", new Features(TR_1500_9000, COLOR)),
PRODUCT_164(164, "LIFX BR30", new Features(TR_1500_9000, COLOR)),
PRODUCT_165(165, "LIFX A19", new Features(TR_1500_9000, COLOR)),
PRODUCT_166(166, "LIFX BR30", new Features(TR_1500_9000, COLOR)),
PRODUCT_167(167, "LIFX Downlight", new Features(TR_1500_9000, COLOR)),
PRODUCT_168(168, "LIFX Downlight", new Features(TR_1500_9000, COLOR)),
PRODUCT_169(169, "LIFX A21 1600lm", new Features(TR_1500_9000, COLOR)),
PRODUCT_170(170, "LIFX A21 1600lm", new Features(TR_1500_9000, COLOR)),
PRODUCT_171(171, "LIFX Round Spot", new Features(TR_1500_9000, COLOR, MATRIX)),
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_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_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));

/**
* Enumerates the product features.
Expand Down

0 comments on commit d0f6856

Please sign in to comment.