diff --git a/bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/util/Util.java b/bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/util/Util.java index d5884b91a08cd..6aa65a13aac45 100644 --- a/bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/util/Util.java +++ b/bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/util/Util.java @@ -219,7 +219,8 @@ public static void checkAvailableChannels(Thing thing, ThingBuilder thingBuilder parameters.forEach(parameter -> { // remove comment: split parameter at '#', discard everything after that and remove // trailing spaces - String normalizedParameter = UIDUtils.encode(parameter.split("#")[0].trim()); + String rawParameter = parameter.split("#")[0].trim(); + String normalizedParameter = UIDUtils.encode(rawParameter); ChannelUID channelUID = new ChannelUID(thing.getUID(), channelId + "_" + normalizedParameter); ChannelBuilder channelBuilder = ChannelBuilder @@ -228,7 +229,7 @@ public static void checkAvailableChannels(Thing thing, ThingBuilder thingBuilder .withLabel(channelTypeDescription.getLabel() + " " + parameter); thingBuilder.withChannel(channelBuilder.build()); Tr064ChannelConfig channelConfig1 = new Tr064ChannelConfig(channelConfig); - channelConfig1.setParameter(parameter); + channelConfig1.setParameter(rawParameter); channels.put(channelUID, channelConfig1); }); } diff --git a/bundles/org.openhab.binding.tr064/src/main/resources/channels.xml b/bundles/org.openhab.binding.tr064/src/main/resources/channels.xml index 2958727b9afd6..7f705b1ae7f53 100644 --- a/bundles/org.openhab.binding.tr064/src/main/resources/channels.xml +++ b/bundles/org.openhab.binding.tr064/src/main/resources/channels.xml @@ -236,7 +236,7 @@ serviceId="urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1"/> - +