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.ThingTypeUID;
16 import org.openhab.core.thing.binding.ThingTypeProvider;
17 import org.openhab.core.thing.type.ThingType;
20 * Extends the ThingTypeProvider to manually add a ThingType.
22 * @author Gerhard Riegler - Initial contribution
24 public interface HomematicThingTypeProvider extends ThingTypeProvider {
27 * Adds the ThingType to this provider.
29 public void addThingType(ThingType thingType);
32 * Use this method to lookup a ThingType which was generated by the
33 * homematic binding. Other than {@link #getThingType(ThingTypeUID, Locale)}
34 * of this provider, it will return also those {@link ThingType}s which are
35 * excluded by {@link HomematicThingTypeExcluder}
38 * e.g. <i>homematic:HM-Sec-SC</i>
39 * @return ThingType that was added to HomematicThingTypeProvider, identified
40 * by its thingTypeUID<br>
41 * <i>null</i> if no ThingType with the given thingTypeUID was added
44 public ThingType getInternalThingType(ThingTypeUID thingTypeUID);