]> git.basschouten.com Git - openhab-addons.git/blob
6d2fa68e3bb09007b9712f43816fb172f2d5b5f2
[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.nikohomecontrol.internal.protocol;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link NikoHomeControlConstants} class defines common constants used in the Niko Home Control communication.
19  *
20  * @author Mark Herwege - Initial Contribution
21  */
22 @NonNullByDefault
23 public class NikoHomeControlConstants {
24
25     // Action types abstracted from NhcI and NhcII action types
26     public enum ActionType {
27         TRIGGER,
28         RELAY,
29         DIMMER,
30         ROLLERSHUTTER,
31         GENERIC
32     }
33
34     // switch and dimmer constants in the Nhc layer
35     public static final String NHCON = "On";
36     public static final String NHCOFF = "Off";
37
38     public static final String NHCTRUE = "True";
39     public static final String NHCFALSE = "False";
40
41     public static final String NHCTRIGGERED = "Triggered";
42
43     // rollershutter constants in the Nhc layer
44     public static final String NHCDOWN = "Down";
45     public static final String NHCUP = "Up";
46     public static final String NHCSTOP = "Stop";
47
48     // NhcII thermostat modes
49     public static final String[] THERMOSTATMODES = { "Day", "Night", "Eco", "Off", "Cool", "Prog1", "Prog2", "Prog3" };
50     public static final String[] THERMOSTATDEMAND = { "Cooling", "None", "Heating" };
51 }