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.doorbird.internal;
16 import java.util.stream.Collectors;
17 import java.util.stream.Stream;
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.openhab.core.thing.ThingTypeUID;
23 * The {@link DoorbirdBindingConstants} class defines common constants, which are
24 * used across the whole binding.
26 * @author Mark Hilbush - Initial contribution
29 public class DoorbirdBindingConstants {
30 public static final String BINDING_ID = "doorbird";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_D101 = new ThingTypeUID(BINDING_ID, "d101");
34 public static final ThingTypeUID THING_TYPE_D210X = new ThingTypeUID(BINDING_ID, "d210x");
35 public static final ThingTypeUID THING_TYPE_A1081 = new ThingTypeUID(BINDING_ID, "a1081");
37 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Stream
38 .of(THING_TYPE_D101, THING_TYPE_D210X, THING_TYPE_A1081).collect(Collectors.toSet());
40 // List of all Channel IDs
41 public static final String CHANNEL_DOORBELL = "doorbell";
42 public static final String CHANNEL_DOORBELL_TIMESTAMP = "doorbellTimestamp";
43 public static final String CHANNEL_DOORBELL_IMAGE = "doorbellImage";
44 public static final String CHANNEL_MOTION = "motion";
45 public static final String CHANNEL_MOTION_TIMESTAMP = "motionTimestamp";
46 public static final String CHANNEL_MOTION_IMAGE = "motionImage";
47 public static final String CHANNEL_LIGHT = "light";
48 public static final String CHANNEL_OPENDOOR1 = "openDoor1";
49 public static final String CHANNEL_OPENDOOR2 = "openDoor2";
50 public static final String CHANNEL_OPENDOOR3 = "openDoor3";
51 public static final String CHANNEL_IMAGE = "image";
52 public static final String CHANNEL_IMAGE_TIMESTAMP = "imageTimestamp";
53 public static final String CHANNEL_DOORBELL_HISTORY_INDEX = "doorbellHistoryIndex";
54 public static final String CHANNEL_DOORBELL_HISTORY_IMAGE = "doorbellHistoryImage";
55 public static final String CHANNEL_DOORBELL_HISTORY_TIMESTAMP = "doorbellHistoryTimestamp";
56 public static final String CHANNEL_MOTION_HISTORY_INDEX = "motionHistoryIndex";
57 public static final String CHANNEL_MOTION_HISTORY_IMAGE = "motionHistoryImage";
58 public static final String CHANNEL_MOTION_HISTORY_TIMESTAMP = "motionHistoryTimestamp";
59 public static final String CHANNEL_DOORBELL_IMAGE_MONTAGE = "doorbellMontage";
60 public static final String CHANNEL_MOTION_IMAGE_MONTAGE = "motionMontage";