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.digitalstrom.internal.lib.listener;
15 import org.openhab.binding.digitalstrom.internal.lib.climate.TemperatureControlSensorTransmitter;
16 import org.openhab.binding.digitalstrom.internal.lib.climate.jsonresponsecontainer.impl.TemperatureControlStatus;
19 * The {@link TemperatureControlStatusListener} can be implemented to get informed by configuration and status changes.
21 * It also can be implemented as discovery, than the id have to be {@link #DISCOVERY}.
23 * @author Michael Ochel
24 * @author Matthias Siegele
27 public interface TemperatureControlStatusListener {
30 * The id for discovery.
32 static Integer DISCOVERY = -2;
35 * Will be called, if the configuration of the {@link TemperatureControlStatus} has changed.
37 * @param tempControlStatus that has changed
39 void configChanged(TemperatureControlStatus tempControlStatus);
42 * Will be called, if the target temperature has changed.
44 * @param newValue of the target temperature
46 void onTargetTemperatureChanged(Float newValue);
49 * Will be called, if the control value has changed.
51 * @param newValue of the control value
53 void onControlValueChanged(Integer newValue);
56 * Registers a {@link TemperatureControlSensorTransmitter}.
58 * @param temperatureSensorTransmitter to register
60 void registerTemperatureSensorTransmitter(TemperatureControlSensorTransmitter temperatureSensorTransmitter);
63 * Returns the id of this {@link TemperatureControlStatusListener}.
67 Integer getTemperationControlStatusListenrID();