2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.homematic.internal.type;
15 import org.openhab.core.thing.type.ChannelType;
16 import org.openhab.core.thing.type.ChannelTypeProvider;
17 import org.openhab.core.thing.type.ChannelTypeUID;
20 * Extends the ChannelTypeProvider to manually add a ChannelType.
22 * @author Gerhard Riegler - Initial contribution
24 public interface HomematicChannelTypeProvider extends ChannelTypeProvider {
27 * Adds the ChannelType to this provider.
29 public void addChannelType(ChannelType channelType);
32 * Use this method to lookup a ChannelType which was generated by the
33 * homematic binding. Other than {@link #getChannelType(ChannelTypeUID, Locale)}
34 * of this provider, it will return also those {@link ChannelType}s
35 * which are excluded by {@link HomematicThingTypeExcluder}
37 * @param channelTypeUID
38 * e.g. <i>homematic:HM-WDS40-TH-I-2_0_RSSI_DEVICE</i>
39 * @return ChannelType that was added to HomematicChannelTypeProvider, identified
40 * by its config-description-uri<br>
41 * <i>null</i> if no ChannelType with the given UID was added
44 public ChannelType getInternalChannelType(ChannelTypeUID channelTypeUID);