[unifi] Provide LED channels for access point #17534
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds new channels for controlling LED on access point:
ledOverride
: When OFF, the site-wide setting for device LED is used, otherwise channelledColor
is applied.ledColor
: This controls the color of the LED. Please note that some AP's might not support colors. The channel can be linked to a Switch item for simply turning the LED on or off.TODO:
ledColor
should be advanced likeledOverride
(or none of them should be)JAR for testing: org.openhab.binding.unifi-4.3.0-SNAPSHOT.jar
Test report
Tests are performed with an access point only supporting blue color and not setable brightness. Each test has an initial state, a visual result and a verification of the persisted values for the device. Items:
ledOverride
ledColor
ledColor
ledColor
Default → Override
Initial state:
Action:
Result:
Override → Default
Initial state:
Action:
Result:
Default: Brightness 100 → 50
Initial state:
Action:
Result:
Default: Brightness 50, Color Blue → Green
Initial state:
Action:
Result:
Comment: Was
#008000
, now fixed to to#00ff00
since brightness is separate.Default: Brightness 100, Color Blue → Green
Initial state:
Action:
Result:
Default, Brightness 50, Color Green → Override
Initial state:
Action:
Result:
Override, Brightness 50, Color Green → Brightness 0
Initial state:
Action:
Result:
Comment: Color is preserved on device.
Override, Brightness 0, Color Green → Brightness 1
Initial state:
Action:
Result:
Override, Brightness 0, Color Green → ON
Initial state:
Action:
Result: