2 * Copyright (c) 2010-2023 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.bluetooth.am43.internal;
15 import java.util.Arrays;
16 import java.util.List;
17 import java.util.UUID;
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.openhab.binding.bluetooth.BluetoothBindingConstants;
21 import org.openhab.core.thing.ThingTypeUID;
24 * The {@link AM43BindingConstants} class defines common constants, which are
25 * used across the whole binding.
27 * @author Connor Petty - Initial contribution
30 public class AM43BindingConstants {
32 private static final String BINDING_ID = "am43";
34 // List of all Thing Type UIDs
35 public static final ThingTypeUID THING_TYPE_AM43 = new ThingTypeUID(BluetoothBindingConstants.BINDING_ID,
38 // List of all Channel ids
39 // public static final String CHANNEL_ID_NAME = "name";
40 public static final String CHANNEL_ID_DIRECTION = "direction";
41 public static final String CHANNEL_ID_TOP_LIMIT_SET = "topLimitSet";
42 public static final String CHANNEL_ID_BOTTOM_LIMIT_SET = "bottomLimitSet";
43 public static final String CHANNEL_ID_HAS_LIGHT_SENSOR = "hasLightSensor";
44 public static final String CHANNEL_ID_OPERATION_MODE = "operationMode";
45 public static final String CHANNEL_ID_SPEED = "speed";
46 public static final String CHANNEL_ID_ELECTRIC = "electric";
47 public static final String CHANNEL_ID_POSITION = "position";
48 public static final String CHANNEL_ID_LENGTH = "length";
49 public static final String CHANNEL_ID_DIAMETER = "diameter";
50 public static final String CHANNEL_ID_TYPE = "type";
51 public static final String CHANNEL_ID_LIGHT_LEVEL = "lightLevel";
53 public static final UUID SERVICE_UUID = UUID.fromString("0000fe50-0000-1000-8000-00805f9b34fb");
55 public static final UUID CHARACTERISTIC_UUID = UUID.fromString("0000fe51-0000-1000-8000-00805f9b34fb");
57 public static List<String> getAllChannels() {
58 return Arrays.asList(CHANNEL_ID_DIRECTION, CHANNEL_ID_TOP_LIMIT_SET, CHANNEL_ID_BOTTOM_LIMIT_SET,
59 CHANNEL_ID_HAS_LIGHT_SENSOR, CHANNEL_ID_OPERATION_MODE, CHANNEL_ID_SPEED, CHANNEL_ID_ELECTRIC,
60 CHANNEL_ID_POSITION, CHANNEL_ID_LENGTH, CHANNEL_ID_DIAMETER, CHANNEL_ID_TYPE, CHANNEL_ID_LIGHT_LEVEL);