]> git.basschouten.com Git - openhab-addons.git/blob
f8ee0fea1e30ef9bdc6f98587f4d6e5694daf988
[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.openuv.internal;
14
15 import java.util.Arrays;
16 import java.util.Collections;
17 import java.util.HashSet;
18 import java.util.Set;
19
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21 import org.openhab.core.thing.ThingTypeUID;
22
23 /**
24  * The {@link OpenUVBindingConstants} class defines common constants, which are
25  * used across the whole binding.
26  *
27  * @author GaĆ«l L'hopital - Initial contribution
28  */
29 @NonNullByDefault
30 public class OpenUVBindingConstants {
31     public static final String BINDING_ID = "openuv";
32     public static final String LOCAL = "local";
33
34     // List of Bridge Type UIDs
35     public static final ThingTypeUID APIBRIDGE_THING_TYPE = new ThingTypeUID(BINDING_ID, "openuvapi");
36
37     // List of Things Type UIDs
38     public static final ThingTypeUID LOCATION_REPORT_THING_TYPE = new ThingTypeUID(BINDING_ID, "uvreport");
39
40     // List of all Channel id's
41     public static final String UV_INDEX = "UVIndex";
42     public static final String ALERT_LEVEL = "Alert";
43     public static final String UV_COLOR = "UVColor";
44     public static final String UV_MAX = "UVMax";
45     public static final String UV_MAX_TIME = "UVMaxTime";
46     public static final String UV_MAX_EVENT = "UVMaxEvent";
47     public static final String OZONE = "Ozone";
48     public static final String OZONE_TIME = "OzoneTime";
49     public static final String UV_TIME = "UVTime";
50     public static final String SAFE_EXPOSURE = "SafeExposure";
51     public static final String ELEVATION = "elevation";
52
53     public static final Set<ThingTypeUID> BRIDGE_THING_TYPES_UIDS = Collections.singleton(APIBRIDGE_THING_TYPE);
54     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>(
55             Arrays.asList(LOCATION_REPORT_THING_TYPE));
56 }