2 * Copyright (c) 2010-2024 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.nikohomecontrol.internal.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link NikoHomeControlConstants} class defines common constants used in the Niko Home Control communication.
20 * @author Mark Herwege - Initial Contribution
23 public class NikoHomeControlConstants {
25 // Action types abstracted from NhcI and NhcII action types
26 public enum ActionType {
34 // switch and dimmer constants in the Nhc layer
35 public static final String NHCON = "On";
36 public static final String NHCOFF = "Off";
38 public static final String NHCTRUE = "True";
39 public static final String NHCFALSE = "False";
41 public static final String NHCTRIGGERED = "Triggered";
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";
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" };