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