2 * Copyright (c) 2010-2024 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.meteostick.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link MeteostickBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Chris Jackson - Initial contribution
25 public class MeteostickBindingConstants {
27 public static final String BINDING_ID = "meteostick";
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");
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";
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";
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;