forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
/
DSMRBindingConstants.java
55 lines (48 loc) · 1.75 KB
/
DSMRBindingConstants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Copyright (c) 2010-2022 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.openhab.binding.dsmr.internal;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.openhab.core.thing.ThingTypeUID;
/**
* This class defines common constants, which are used across the whole binding.
*
* @author M. Volaart - Initial contribution
* @author Hilbrand Bouwkamp - Removed time constants
*/
@NonNullByDefault
public final class DSMRBindingConstants {
/**
* Binding id.
*/
public static final String BINDING_ID = "dsmr";
/**
* Key to use to identify serial port.
*/
public static final String DSMR_PORT_NAME = "org.openhab.binding.dsmr";
/**
* Bridge device things
*/
public static final ThingTypeUID THING_TYPE_DSMR_BRIDGE = new ThingTypeUID(BINDING_ID, "dsmrBridge");
public static final ThingTypeUID THING_TYPE_SMARTY_BRIDGE = new ThingTypeUID(BINDING_ID, "smartyBridge");
/**
* Configuration parameter for the serial port.
*/
public static final String CONFIGURATION_SERIAL_PORT = "serialPort";
public static final String CONFIGURATION_DECRYPTION_KEY = "decryptionKey";
public static final String CONFIGURATION_DECRYPTION_KEY_EMPTY = "";
public static final String CONFIGURATION_ADDITIONAL_KEY = "additionalKey";
public static final String ADDITIONAL_KEY_DEFAULT = "3000112233445566778899AABBCCDDEEFF";
private DSMRBindingConstants() {
// Constants class
}
}