diff --git a/bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/things/YamlThingProvider.java b/bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/things/YamlThingProvider.java index 09497984c..be7aa2f88 100644 --- a/bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/things/YamlThingProvider.java +++ b/bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/things/YamlThingProvider.java @@ -492,10 +492,9 @@ public class YamlThingProvider extends AbstractProvider if (channel.getChannelTypeUID() != null) { // We create again the user defined channel because channel type was potentially not yet // in the registry when the channel was initially created - newChannel = createChannel(target.getUID(), channel.getUID().getIdWithoutGroup(), - channel.getChannelTypeUID(), channel.getKind(), channel.getAcceptedItemType(), - channel.getLabel(), channel.getDescription(), channel.getAutoUpdatePolicy(), - channel.getConfiguration(), false); + newChannel = createChannel(target.getUID(), channel.getUID().getId(), channel.getChannelTypeUID(), + channel.getKind(), channel.getAcceptedItemType(), channel.getLabel(), + channel.getDescription(), channel.getAutoUpdatePolicy(), channel.getConfiguration(), false); } channelsToAdd.add(newChannel); }