]> git.basschouten.com Git - openhab-addons.git/blob
527336d23b43d724a1b47d10b7db1cd9dbcac9c8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.awattar.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17 import org.openhab.core.thing.type.ChannelGroupTypeUID;
18
19 /**
20  * The {@link AwattarBindingConstants} class defines common constants, which are
21  * used across the whole binding.
22  *
23  * @author Wolfgang Klimt - Initial contribution
24  */
25 @NonNullByDefault
26 public class AwattarBindingConstants {
27
28     public static final String BINDING_ID = "awattar";
29     public static final String API = "api";
30
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");
36
37     public static final ChannelGroupTypeUID CHANNEL_GROUP_TYPE_HOURLY_PRICES = new ChannelGroupTypeUID(BINDING_ID,
38             "hourly-prices");
39
40     public static final String CHANNEL_GROUP_CURRENT = "current";
41
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";
47
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";
57 }