mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Fix Global OFF not turning lights/segments off. (#11806)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
parent
3a913a6e6b
commit
dd951cee02
@ -284,8 +284,8 @@ public class WledApiV084 implements WledApi {
|
||||
handler.update(CHANNEL_THIRD_WHITE, WLedHelper
|
||||
.parseWhitePercent(state.stateResponse.seg[handler.config.segmentIndex].col[2].toString()));
|
||||
}
|
||||
|
||||
if (!state.stateResponse.seg[handler.config.segmentIndex].on) {
|
||||
// Global OFF or Segment OFF needs to be treated as OFF
|
||||
if (!state.stateResponse.seg[handler.config.segmentIndex].on || !state.stateResponse.on) {
|
||||
handler.update(CHANNEL_MASTER_CONTROLS, OnOffType.OFF);
|
||||
handler.update(CHANNEL_SEGMENT_BRIGHTNESS, OnOffType.OFF);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user