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