This repository has been archived by the owner on May 7, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LIFX] Add optional host configuration parameter, support new product…
…s and improvements (#4231) * [LIFX] Add optional host configuration parameter, support new products * Add host configuration parameter for lights that do not respond to UDP broadcasts (fixes #3913) * Add support for new products (most notably the new Downlights) * Add deviceId configuration parameter pattern to prevent mistakes/exceptions * Fix static code analysis findings * Make broadcastEnabled final * Makes the LIFX Binding periodically update network interface information. This for instance resolves the issue that network interfaces are not (or still) being used for broadcasts after they go up (or down). * The code for this information was duplicated across the LifxLightDiscovery and LifxLightCommunicationHandler classes and has now been extracted into LifxNetworkUtil. * All utility classes have now been grouped in the .util package. * Make Device ID an optional configuration paramater, use lambdas and fix updating properties * Update Thing status to configuration error when Device ID and Host are null * Introduce logId property so logging identifies light depending on MAC/IP configuration * Add logId where missing to simplify debugging * Use lambdas for listener registration and iteratating over listeners * Resolve @nonnull warnings * Fix properties not always being updated * Use a LifxLightContext for sharing common variables between handler helper objects * Improve exception handling by catching specific exceptions and using more specific error messages * Don't set host property on discovered lights Signed-off-by: Wouter Born <eclipse@maindrain.net>
- Loading branch information
1 parent
4dd53d9
commit 52d22b3
Showing
29 changed files
with
997 additions
and
823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.