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.astro.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link AstroBinding} class defines common constants, which are
20 * used across the whole binding.
22 * @author Gerhard Riegler - Initial contribution
23 * @author Amit Kumar Mondal - Made non-Instantiable
26 public final class AstroBindingConstants {
29 private AstroBindingConstants() {
30 throw new IllegalAccessError("Non-instantiable");
33 public static final String BINDING_ID = "astro";
35 private static final String SUN = "sun";
36 private static final String MOON = "moon";
37 public static final String LOCAL = "local";
40 public static final ThingTypeUID THING_TYPE_SUN = new ThingTypeUID(BINDING_ID, SUN);
41 public static final ThingTypeUID THING_TYPE_MOON = new ThingTypeUID(BINDING_ID, MOON);
44 public static final String EVENT_START = "START";
45 public static final String EVENT_END = "END";
47 public static final String EVENT_PHASE_FIRST_QUARTER = "FIRST_QUARTER";
48 public static final String EVENT_PHASE_THIRD_QUARTER = "THIRD_QUARTER";
49 public static final String EVENT_PHASE_FULL = "FULL";
50 public static final String EVENT_PHASE_NEW = "NEW";
52 public static final String EVENT_PERIGEE = "PERIGEE";
53 public static final String EVENT_APOGEE = "APOGEE";
56 public static final String EVENT_CHANNEL_ID_MOON_PHASE = "phase#event";
57 public static final String EVENT_CHANNEL_ID_ECLIPSE = "eclipse#event";
58 public static final String EVENT_CHANNEL_ID_PERIGEE = "perigee#event";
59 public static final String EVENT_CHANNEL_ID_APOGEE = "apogee#event";
61 public static final String EVENT_CHANNEL_ID_RISE = "rise#event";
62 public static final String EVENT_CHANNEL_ID_SET = "set#event";
63 public static final String EVENT_CHANNEL_ID_NOON = "noon#event";
64 public static final String EVENT_CHANNEL_ID_NIGHT = "night#event";
65 public static final String EVENT_CHANNEL_ID_MORNING_NIGHT = "morningNight#event";
66 public static final String EVENT_CHANNEL_ID_ASTRO_DAWN = "astroDawn#event";
67 public static final String EVENT_CHANNEL_ID_NAUTIC_DAWN = "nauticDawn#event";
68 public static final String EVENT_CHANNEL_ID_CIVIL_DAWN = "civilDawn#event";
69 public static final String EVENT_CHANNEL_ID_ASTRO_DUSK = "astroDusk#event";
70 public static final String EVENT_CHANNEL_ID_NAUTIC_DUSK = "nauticDusk#event";
71 public static final String EVENT_CHANNEL_ID_CIVIL_DUSK = "civilDusk#event";
72 public static final String EVENT_CHANNEL_ID_EVENING_NIGHT = "eveningNight#event";
73 public static final String EVENT_CHANNEL_ID_DAYLIGHT = "daylight#event";
75 public static final String CHANNEL_ID_SUN_PHASE_NAME = "phase#name";