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