]> git.basschouten.com Git - openhab-addons.git/blob
0f3d0bd12b44c6d12e45e648fb8d59f8527fd110
[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.warmup.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link WarmupBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author James Melville - Initial contribution
25  */
26 @NonNullByDefault
27 public class WarmupBindingConstants {
28
29     private static final String BINDING_ID = "warmup";
30
31     // List of all Thing Type UIDs
32     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "my-warmup");
33     public static final ThingTypeUID THING_TYPE_ROOM = new ThingTypeUID(BINDING_ID, "room");
34
35     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_BRIDGE, THING_TYPE_ROOM);
36     public static final Set<ThingTypeUID> DISCOVERABLE_THING_TYPES_UIDS = Set.of(THING_TYPE_ROOM);
37
38     // Room Channel Ids
39     public static final String CHANNEL_CURRENT_TEMPERATURE = "currentTemperature";
40     public static final String CHANNEL_TARGET_TEMPERATURE = "targetTemperature";
41     public static final String CHANNEL_OVERRIDE_DURATION = "overrideRemaining";
42     public static final String CHANNEL_RUN_MODE = "runMode";
43     public static final String CHANNEL_FROST_PROTECTION_MODE = "frostProtectionMode";
44     public static final String CHANNEL_HEATING_TARGET = "heatingTarget";
45     public static final String CHANNEL_AIR_TEMPERATURE = "airTemperature";
46     public static final String CHANNEL_FLOOR_TEMPERATURE = "floorTemperature";
47
48     public static final String FROST_PROTECTION_MODE = "anti_frost";
49
50     // Property Labels
51     public static final String PROPERTY_ROOM_ID = "Id";
52     public static final String PROPERTY_ROOM_NAME = "Name";
53     public static final String PROPERTY_LOCATION_ID = "LocationId";
54     public static final String PROPERTY_LOCATION_NAME = "Location";
55
56     // Web Service Endpoints
57     public static final String APP_ENDPOINT = "https://api.warmup.com/apps/app/v1";
58     public static final String QUERY_ENDPOINT = "https://apil.warmup.com/graphql";
59
60     // Web Service Constants
61     public static final String USER_AGENT = "WARMUP_APP";
62     public static final String APP_TOKEN = "M=;He<Xtg\"$}4N%5k{$:PD+WA\"]D<;#PriteY|VTuA>_iyhs+vA\"4lic{6-LqNM:";
63
64     public static final String AUTH_METHOD = "userLogin";
65     public static final String AUTH_APP_ID = "WARMUP-APP-V001";
66 }