]> git.basschouten.com Git - openhab-addons.git/blob
3d1143596d1228caa7b300e5fb0fc7b4b3a289d7
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.bluetooth.ruuvitag.internal;
14
15 import org.openhab.binding.bluetooth.BluetoothBindingConstants;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link RuuviTagBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Sami Salonen - Initial contribution
23  */
24 public class RuuviTagBindingConstants {
25
26     // List of all Thing Type UIDs
27     public static final ThingTypeUID THING_TYPE_BEACON = new ThingTypeUID(BluetoothBindingConstants.BINDING_ID,
28             "ruuvitag_beacon");
29
30     // Channel IDs
31     public static final String CHANNEL_ID_BATTERY = "batteryVoltage";
32     public static final String CHANNEL_ID_DATA_FORMAT = "dataFormat";
33     public static final String CHANNEL_ID_TEMPERATURE = "temperature";
34     public static final String CHANNEL_ID_HUMIDITY = "humidity";
35     public static final String CHANNEL_ID_PRESSURE = "pressure";
36     public static final String CHANNEL_ID_TX_POWER = "txPower";
37
38     public static final String CHANNEL_ID_ACCELERATIONX = "accelerationx";
39     public static final String CHANNEL_ID_ACCELERATIONY = "accelerationy";
40     public static final String CHANNEL_ID_ACCELERATIONZ = "accelerationz";
41     public static final String CHANNEL_ID_MEASUREMENT_SEQUENCE_NUMBER = "measurementSequenceNumber";
42     public static final String CHANNEL_ID_MOVEMENT_COUNTER = "movementCounter";
43 }