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.evohome.internal;
15 import java.util.Collections;
17 import java.util.stream.Collectors;
18 import java.util.stream.Stream;
20 import org.openhab.core.thing.ThingTypeUID;
23 * The {@link EvohomeBindingConstants} class defines common constants, which are
24 * used across the whole binding.
26 * @author Jasper van Zuijlen - Initial contribution
27 * @author Neil Renaud - Heating Zones
29 public class EvohomeBindingConstants {
31 private static final String BINDING_ID = "evohome";
33 // List of all Thing Type UIDs
34 public static final ThingTypeUID THING_TYPE_EVOHOME_ACCOUNT = new ThingTypeUID(BINDING_ID, "account");
35 public static final ThingTypeUID THING_TYPE_EVOHOME_DISPLAY = new ThingTypeUID(BINDING_ID, "display");
36 public static final ThingTypeUID THING_TYPE_EVOHOME_HEATING_ZONE = new ThingTypeUID(BINDING_ID, "heatingzone");
38 // List of all Channel IDs
39 public static final String DISPLAY_SYSTEM_MODE_CHANNEL = "SystemMode";
40 public static final String ZONE_TEMPERATURE_CHANNEL = "Temperature";
41 public static final String ZONE_SET_POINT_STATUS_CHANNEL = "SetPointStatus";
42 public static final String ZONE_SET_POINT_CHANNEL = "SetPoint";
44 // List of Discovery properties
45 public static final String PROPERTY_ID = "id";
46 public static final String PROPERTY_NAME = "name";
48 // List of all addressable things in OH = SUPPORTED_DEVICE_THING_TYPES_UIDS + the virtual bridge
49 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.unmodifiableSet(
50 Stream.of(THING_TYPE_EVOHOME_ACCOUNT, THING_TYPE_EVOHOME_DISPLAY, THING_TYPE_EVOHOME_HEATING_ZONE)
51 .collect(Collectors.toSet()));