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.warmup.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link WarmupBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author James Melville - Initial contribution
27 public class WarmupBindingConstants {
29 private static final String BINDING_ID = "warmup";
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");
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);
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";
48 public static final String FROST_PROTECTION_MODE = "anti_frost";
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";
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";
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:";
64 public static final String AUTH_METHOD = "userLogin";
65 public static final String AUTH_APP_ID = "WARMUP-APP-V001";