Fixes #9086
Relates to openhab/openhab-core#1707
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
// module is assumed as online, when the corresponding Bridge (PckGatewayHandler) is online.
updateStatus(ThingStatus.ONLINE);
+
+ // trigger REFRESH commands for all linked Channels to start polling
+ getThing().getChannels().forEach(channel -> {
+ if (isLinked(channel.getUID())) {
+ channelLinked(channel.getUID());
+ }
+ });
} catch (LcnException e) {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, e.getMessage());
}