зеркало из https://github.com/mozilla/smarthome.git
Merge pull request #1206 from AlJungOrg/fix-hue-initialstate
Fix #1159 Add channelLinked() to HueLightHandler
This commit is contained in:
Коммит
9dd87ac4fc
|
@ -330,6 +330,14 @@ public class HueLightHandler extends BaseThingHandler implements LightStatusList
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void channelLinked(ChannelUID channelUID) {
|
||||||
|
HueBridgeHandler handler = getHueBridgeHandler();
|
||||||
|
if (handler != null) {
|
||||||
|
onLightStateChanged(null, handler.getLightById(lightId));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLightRemoved(HueBridge bridge, FullLight light) {
|
public void onLightRemoved(HueBridge bridge, FullLight light) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче