]> git.basschouten.com Git - openhab-addons.git/blob
d35e3cd82adbbbeb0359b9c2df8e24246b208399
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.evohome.internal.api;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * List of evohome API constants
19  *
20  * @author Jasper van Zuijlen - Initial contribution
21  *
22  */
23 @NonNullByDefault
24 public class EvohomeApiConstants {
25     public static final String URL_V2_AUTH = "https://tccna.honeywell.com/Auth/OAuth/Token";
26
27     public static final String URL_V2_BASE = "https://tccna.honeywell.com/WebAPI/emea/api/v1/";
28
29     public static final String URL_V2_ACCOUNT = "userAccount";
30     public static final String URL_V2_INSTALLATION_INFO = "location/installationInfo?userId=%s&includeTemperatureControlSystems=True";// {userId}
31     public static final String URL_V2_LOCATION = "location/%s/installationInfo?includeTemperatureControlSystems=True"; // {locationId}
32     public static final String URL_V2_GATEWAY = "gateway";
33     public static final String URL_V2_HOT_WATER = "domesticHotWater/%s/state"; // {hardwareId}
34     public static final String URL_V2_SCHEDULE = "%s/%s/schedule"; // {zone_type}, {zoneId}
35     public static final String URL_V2_HEAT_SETPOINT = "temperatureZone/%s/heatSetpoint"; // {zoneId}
36     public static final String URL_V2_LOCATION_STATUS = "location/%s/status?includeTemperatureControlSystems=True"; // {locationId}
37     public static final String URL_V2_MODE = "temperatureControlSystem/%s/mode"; // {systemId}
38 }