2 * Copyright (c) 2010-2023 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.innogysmarthome.internal.client;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Holds necessary constants for the innogy API.
20 * @author Oliver Kuhl - Initial contribution
24 public final class Constants {
27 public static final String API_HOST = "api.services-smarthome.de";
28 public static final String AUTH_HOST = "auth.services-smarthome.de";
29 public static final String API_VERSION = "1.1";
30 public static final String API_URL_BASE = "https://" + API_HOST + "/API/" + API_VERSION;
31 public static final String API_URL_TOKEN = "https://" + AUTH_HOST + "/AUTH/token";
33 public static final String API_URL_STATUS = API_URL_BASE + "/status";
35 public static final String API_URL_DEVICE = API_URL_BASE + "/device";
36 public static final String API_URL_DEVICE_ID = API_URL_DEVICE + "/{id}";
37 public static final String API_URL_DEVICE_ID_STATE = API_URL_DEVICE_ID + "/state";
38 public static final String API_URL_DEVICE_CAPABILITIES = API_URL_DEVICE + "/{id}/capabilities";
39 public static final String API_URL_DEVICE_STATES = API_URL_DEVICE + "/states";
41 public static final String API_URL_LOCATION = API_URL_BASE + "/location";
43 public static final String API_URL_CAPABILITY = API_URL_BASE + "/capability";
44 public static final String API_URL_CAPABILITY_STATES = API_URL_CAPABILITY + "/states";
46 public static final String API_URL_MESSAGE = API_URL_BASE + "/message";
48 public static final String API_URL_ACTION = API_URL_BASE + "/action";