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.nikohomecontrol.internal.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link NhcThermostatEvent} interface is used to pass thermostat events received from the Niko Home Control
20 * the consuming client. It is designed to pass events to openHAB handlers that implement this interface. Because of
21 * the design, the org.openhab.binding.nikohomecontrol.internal.protocol package can be extracted and used independent
24 * @author Mark Herwege - Initial Contribution
27 public interface NhcThermostatEvent {
30 * This method is called when thermostat event is received from the Niko Home Control controller.
32 * @param measured current temperature in 0.1°C multiples
33 * @param setpoint the setpoint temperature in 0.1°C multiples
34 * @param mode thermostat mode 0 = day, 1 = night, 2 = eco, 3 = off, 4 = cool, 5 = prog1, 6 = prog2, 7 = prog3
35 * @param overrule the overrule temperature in 0.1°C multiples
36 * @param demand 0 if no demand, > 0 if heating, < 0 if cooling
38 public void thermostatEvent(int measured, int setpoint, int mode, int overrule, int demand);
41 * Called to indicate the thermostat has been initialized.
44 public void thermostatInitialized();
47 * Called to indicate the thermostat has been removed from the Niko Home Control controller.
50 public void thermostatRemoved();