]> git.basschouten.com Git - openhab-addons.git/blob
45797ef6e7c196bac844b1ceb137e73f10281a96
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.velbus.internal.handler;
14
15 import static org.openhab.binding.velbus.internal.VelbusBindingConstants.*;
16
17 import java.util.Arrays;
18 import java.util.HashSet;
19 import java.util.Set;
20
21 import org.eclipse.jdt.annotation.NonNullByDefault;
22 import org.openhab.core.thing.ChannelUID;
23 import org.openhab.core.thing.Thing;
24 import org.openhab.core.thing.ThingTypeUID;
25
26 /**
27  * The {@link VelbusVMBGPHandler} is responsible for handling commands, which are
28  * sent to one of the channels.
29  *
30  * @author Cedric Boon - Initial contribution
31  */
32 @NonNullByDefault
33 public class VelbusVMBGPHandler extends VelbusThermostatHandler {
34     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = new HashSet<>(
35             Arrays.asList(THING_TYPE_VMBGP1, THING_TYPE_VMBGP1_2, THING_TYPE_VMBGP2, THING_TYPE_VMBGP2_2,
36                     THING_TYPE_VMBGP4, THING_TYPE_VMBGP4_2, THING_TYPE_VMBGP4PIR, THING_TYPE_VMBGP4PIR_2));
37
38     public VelbusVMBGPHandler(Thing thing) {
39         super(thing, 4, new ChannelUID(thing.getUID(), "input", "CH9"));
40     }
41 }