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.windcentrale.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link WindcentraleBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Marcel Verpaalen - Initial contribution
25 * @author Wouter Born - Add support for new API with authentication
28 public final class WindcentraleBindingConstants {
30 public static final String BINDING_ID = "windcentrale";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_ACCOUNT = new ThingTypeUID(BINDING_ID, "account");
34 public static final ThingTypeUID THING_TYPE_WINDMILL = new ThingTypeUID(BINDING_ID, "windmill");
36 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_ACCOUNT, THING_TYPE_WINDMILL);
38 // List of all Channel IDs
39 public static final String CHANNEL_ENERGY_TOTAL = "energy-total";
40 public static final String CHANNEL_POWER_RELATIVE = "power-relative";
41 public static final String CHANNEL_POWER_SHARES = "power-shares";
42 public static final String CHANNEL_POWER_TOTAL = "power-total";
43 public static final String CHANNEL_RUN_PERCENTAGE = "run-percentage";
44 public static final String CHANNEL_RUN_TIME = "run-time";
45 public static final String CHANNEL_TIMESTAMP = "timestamp";
46 public static final String CHANNEL_WIND_DIRECTION = "wind-direction";
47 public static final String CHANNEL_WIND_SPEED = "wind-speed";
49 public static final String PROPERTY_NAME = "name";
50 public static final String PROPERTY_SHARES = "shares";
51 public static final String PROPERTY_REFRESH_INTERVAL = "refreshInterval";
53 public static final String PROPERTY_BUILD_YEAR = "buildYear";
54 public static final String PROPERTY_COORDINATES = "coordinates";
55 public static final String PROPERTY_DETAILS_URL = "detailsUrl";
56 public static final String PROPERTY_MUNICIPALITY = "municipality";
57 public static final String PROPERTY_PROJECT_CODE = "projectCode";
58 public static final String PROPERTY_PROVINCE = "province";
59 public static final String PROPERTY_TOTAL_SHARES = "totalShares";