2 * Copyright (c) 2010-2022 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.knx.internal.channel;
15 import static org.openhab.binding.knx.internal.KNXBindingConstants.*;
17 import java.util.Collections;
20 import org.eclipse.jdt.annotation.NonNullByDefault;
22 import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean;
25 * contact channel type description
27 * @author Simon Kaufmann - initial contribution and API.
31 class TypeContact extends KNXChannelType {
34 super(CHANNEL_CONTACT, CHANNEL_CONTACT_CONTROL);
38 protected Set<String> getAllGAKeys() {
39 return Collections.singleton(GA);
43 protected String getDefaultDPT(String gaConfigKey) {
44 return DPTXlatorBoolean.DPT_OPENCLOSE.getID();