[lifx] Add support for new LIFX products (#16618)

* [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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Wouter Born 2024-04-06 14:09:44 +02:00 committed by Ciprian Pascu
parent 1815c6c34d
commit e2d49ac79b
2 changed files with 34 additions and 1 deletions

View File

@ -16,11 +16,17 @@ The following table lists the thing types of the supported LIFX devices:
| Color 1000 | colorlight | | Color 1000 | colorlight |
| Color 1000 BR30 | colorlight | | Color 1000 BR30 | colorlight |
| LIFX A19 | colorlight | | LIFX A19 | colorlight |
| LIFX A21 1600lm | colorlight |
| LIFX BR30 | colorlight | | LIFX BR30 | colorlight |
| LIFX Candle | colorlight | | LIFX Candle | colorlight |
| LIFX Ceiling | colorlight |
| LIFX Downlight | colorlight | | LIFX Downlight | colorlight |
| LIFX GU10 | colorlight | | LIFX GU10 | colorlight |
| LIFX Mini Color | colorlight | | LIFX Mini Color | colorlight |
| LIFX PAR38 | colorlight |
| LIFX Round Spot | colorlight |
| LIFX Round Path | colorlight |
| LIFX Square Path | colorlight |
| | | | | |
| LIFX Clean | colorhevlight | | LIFX Clean | colorhevlight |
| | | | | |
@ -29,6 +35,7 @@ The following table lists the thing types of the supported LIFX devices:
| | | | | |
| LIFX Beam | colormzlight | | LIFX Beam | colormzlight |
| LIFX Neon | colormzlight | | LIFX Neon | colormzlight |
| LIFX Outdoor Neon | colormzlight |
| LIFX String | colormzlight | | LIFX String | colormzlight |
| LIFX Z | colormzlight | | LIFX Z | colormzlight |
| | | | | |

View File

@ -145,7 +145,33 @@ public enum LifxProduct {
PRODUCT_141(141, "LIFX Neon", new Features(TR_1500_9000, COLOR, EXTENDED_MULTIZONE, MULTIZONE)), 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_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_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. * Enumerates the product features.