Skip to content

Commit

Permalink
Pre-implementation of state update.
Browse files Browse the repository at this point in the history
Signed-off-by: Claudius Ellsel <[email protected]> (github:
claell)
  • Loading branch information
claell committed May 24, 2018
1 parent 40285fa commit 2748c87
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,21 @@ public void handleCommandHelper(ChannelUID channelUID, Command command, String l
}
if (command instanceof RefreshType){
DeviceManager.getInstance().startDiscovery(5 * 1000);
switch (channelUID.getId()) {
//TODO: Add missing update functions, but lib does not seem to support that currently.
case YeelightBindingConstants.CHANNEL_BRIGHTNESS:
//updateState(channelUID, getBrightness());
break;
case YeelightBindingConstants.CHANNEL_COLOR:
//updateState(channelUID, getColor());
break;
case YeelightBindingConstants.CHANNEL_COLOR_TEMPERATURE:
//updateState(channelUID, getColorTemperature());
break;
default:
break;
}
return;
}
switch (channelUID.getId()) {
case YeelightBindingConstants.CHANNEL_BRIGHTNESS:
Expand Down

0 comments on commit 2748c87

Please sign in to comment.