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.awattar.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17 import org.openhab.core.thing.type.ChannelGroupTypeUID;
20 * The {@link AwattarBindingConstants} class defines common constants, which are
21 * used across the whole binding.
23 * @author Wolfgang Klimt - Initial contribution
26 public class AwattarBindingConstants {
28 public static final String BINDING_ID = "awattar";
29 public static final String API = "api";
31 // List of all Thing Type UIDs
32 public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
33 public static final ThingTypeUID THING_TYPE_PRICE = new ThingTypeUID(BINDING_ID, "prices");
34 public static final ThingTypeUID THING_TYPE_BESTPRICE = new ThingTypeUID(BINDING_ID, "bestprice");
35 public static final ThingTypeUID THING_TYPE_BESTNEXT = new ThingTypeUID(BINDING_ID, "bestnext");
37 public static final ChannelGroupTypeUID CHANNEL_GROUP_TYPE_HOURLY_PRICES = new ChannelGroupTypeUID(BINDING_ID,
40 public static final String CHANNEL_GROUP_CURRENT = "current";
42 // List of all Channel ids
43 public static final String CHANNEL_TOTAL_NET = "total-net";
44 public static final String CHANNEL_TOTAL_GROSS = "total-gross";
45 public static final String CHANNEL_MARKET_NET = "market-net";
46 public static final String CHANNEL_MARKET_GROSS = "market-gross";
48 public static final String CHANNEL_ACTIVE = "active";
49 public static final String CHANNEL_START = "start";
50 public static final String CHANNEL_END = "end";
51 public static final String CHANNEL_COUNTDOWN = "countdown";
52 public static final String CHANNEL_REMAINING = "remaining";
53 public static final String CHANNEL_HOURS = "hours";
54 public static final String CHANNEL_DURATION = "rangeDuration";
55 public static final String CHANNEL_LOOKUP_HOURS = "lookupHours";
56 public static final String CHANNEL_CONSECUTIVE = "consecutive";