]> git.basschouten.com Git - openhab-addons.git/blob
e60a9fa46df5b9de83d8decb1c5ce200db951f73
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.dsmr.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * This class defines common constants, which are used across the whole binding.
20  *
21  * @author M. Volaart - Initial contribution
22  * @author Hilbrand Bouwkamp - Removed time constants
23  */
24 @NonNullByDefault
25 public final class DSMRBindingConstants {
26     /**
27      * Binding id.
28      */
29     public static final String BINDING_ID = "dsmr";
30
31     /**
32      * Key to use to identify serial port.
33      */
34     public static final String DSMR_PORT_NAME = "org.openhab.binding.dsmr";
35
36     /**
37      * Bridge device things
38      */
39     public static final ThingTypeUID THING_TYPE_DSMR_BRIDGE = new ThingTypeUID(BINDING_ID, "dsmrBridge");
40     public static final ThingTypeUID THING_TYPE_SMARTY_BRIDGE = new ThingTypeUID(BINDING_ID, "smartyBridge");
41
42     /**
43      * Configuration parameter for the serial port.
44      */
45     public static final String CONFIGURATION_SERIAL_PORT = "serialPort";
46
47     public static final String CONFIGURATION_DECRYPTION_KEY = "decryptionKey";
48     public static final String CONFIGURATION_DECRYPTION_KEY_EMPTY = "";
49     public static final String CONFIGURATION_ADDITIONAL_KEY = "additionalKey";
50     public static final String CONFIGURATION_ADDITIONAL_KEY_DEFAULT = "3000112233445566778899AABBCCDDEEFF";
51
52     private DSMRBindingConstants() {
53         // Constants class
54     }
55 }