]> git.basschouten.com Git - openhab-addons.git/blob
24e985244f5a6e50ebbc741682679b55ab51bac4
[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.meteostick.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link meteostickBinding} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Chris Jackson - Initial contribution
23  */
24 @NonNullByDefault
25 public class MeteostickBindingConstants {
26
27     public static final String BINDING_ID = "meteostick";
28
29     // List of all Thing Type UIDs
30     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "meteostick_bridge");
31     public static final ThingTypeUID THING_TYPE_DAVIS = new ThingTypeUID(BINDING_ID, "meteostick_davis_iss");
32
33     // List of all Channel ids
34     public static final String CHANNEL_INDOOR_TEMPERATURE = "indoor-temperature";
35     public static final String CHANNEL_OUTDOOR_TEMPERATURE = "outdoor-temperature";
36     public static final String CHANNEL_HUMIDITY = "humidity";
37     public static final String CHANNEL_PRESSURE = "pressure";
38     public static final String CHANNEL_RAIN_RAW = "rain-raw";
39     public static final String CHANNEL_RAIN_CURRENTHOUR = "rain-currenthour";
40     public static final String CHANNEL_RAIN_LASTHOUR = "rain-lasthour";
41     public static final String CHANNEL_WIND_SPEED = "wind-speed";
42     public static final String CHANNEL_WIND_DIRECTION = "wind-direction";
43     public static final String CHANNEL_WIND_SPEED_LAST2MIN_AVERAGE = "wind-speed-last2min-average";
44     public static final String CHANNEL_WIND_SPEED_LAST2MIN_MAXIMUM = "wind-speed-last2min-maximum";
45     public static final String CHANNEL_WIND_DIRECTION_LAST2MIN_AVERAGE = "wind-direction-last2min-average";
46     public static final String CHANNEL_SOLAR_POWER = "solar-power";
47     public static final String CHANNEL_SIGNAL_STRENGTH = "signal-strength";
48     public static final String CHANNEL_LOW_BATTERY = "low-battery";
49
50     // List of parameters
51     public static final String PARAMETER_CHANNEL = "channel";
52     public static final String PARAMETER_SPOON = "spoon";
53     public static final String PARAMETER_SPOON_DEFAULT = "0.254";
54
55     // Miscellaneous constants
56     public static final long HOUR_IN_SEC = 60 * 60;
57     public static final long HOUR_IN_MSEC = HOUR_IN_SEC * 1000;
58 }