]> git.basschouten.com Git - openhab-addons.git/blob
f907a40ba8b247e45f2dc67bb50bea75cc59af75
[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.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     // Access control types abstracted from NhcI and NhcII access control types
35     public static enum AccessType {
36         BASE,
37         RINGANDCOMEIN,
38         BELLBUTTON,
39         GENERIC
40     }
41
42     // Meter types abstracted from NhcI and NhcII meter types
43     public static enum MeterType {
44         ENERGY_LIVE,
45         ENERGY,
46         GAS,
47         WATER,
48         GENERIC
49     }
50
51     // switch and dimmer constants in the Nhc layer
52     public static final String NHCON = "On";
53     public static final String NHCOFF = "Off";
54
55     public static final String NHCTRUE = "True";
56     public static final String NHCFALSE = "False";
57
58     public static final String NHCTRIGGERED = "Triggered";
59
60     // rollershutter constants in the Nhc layer
61     public static final String NHCDOWN = "Down";
62     public static final String NHCUP = "Up";
63     public static final String NHCSTOP = "Stop";
64
65     // doorlock, bell and video constants in the Nhc layer
66     public static final String NHCOPEN = "Open";
67     public static final String NHCCLOSED = "Closed";
68     public static final String NHCIDLE = "Idle";
69     public static final String NHCRINGING = "Ringing";
70     public static final String NHCACTIVE = "Active";
71
72     // NhcII thermostat modes
73     public static final String[] THERMOSTATMODES = { "Day", "Night", "Eco", "Off", "Cool", "Prog1", "Prog2", "Prog3" };
74     public static final String[] THERMOSTATDEMAND = { "Cooling", "None", "Heating" };
75 }