import org.openhab.core.thing.Thing;
import org.openhab.core.thing.ThingStatus;
import org.openhab.core.thing.ThingStatusDetail;
-import org.openhab.core.thing.ThingStatusInfo;
import org.openhab.core.thing.ThingTypeUID;
import org.openhab.core.types.Command;
import org.openhab.core.types.UnDefType;
}
}
- @Override
- public void bridgeStatusChanged(ThingStatusInfo bridgeStatusInfo) {
- super.bridgeStatusChanged(bridgeStatusInfo);
- // when the bridge is ONLINE request for thing states (temp, setTemp, fanSpeed...)
- if (bridgeStatusInfo.getStatus().equals(ThingStatus.ONLINE)) {
- refreshDevice(false);
- }
- }
-
@Override
protected void handleChannelCommand(ChannelUID channel, Command command) {
switch (channel.getId()) {