2 * Copyright (c) 2010-2022 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.miele.internal.handler;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.miele.internal.FullyQualifiedApplianceIdentifier;
17 import org.openhab.binding.miele.internal.api.dto.DeviceClassObject;
18 import org.openhab.binding.miele.internal.api.dto.DeviceProperty;
19 import org.openhab.binding.miele.internal.api.dto.HomeDevice;
23 * The {@link ApplianceStatusListener} is notified when an appliance status has changed or
24 * an appliance has been removed or added.
26 * @author Karel Goderis - Initial contribution
27 * @author Jacob Laursen - Fixed multicast and protocol support (ZigBee/LAN)
30 public interface ApplianceStatusListener {
33 * This method is called whenever the state of the given appliance has changed.
35 * @param applianceIdentifier the fully qualified identifier of the appliance that has changed
36 * @param dco the POJO containing the new state (properties and/or operations)
38 void onApplianceStateChanged(FullyQualifiedApplianceIdentifier applianceIdentifier, DeviceClassObject dco);
41 * This method is called whenever a "property" of the given appliance has changed.
43 * @param applianceIdentifier the fully qualified identifier of the appliance that has changed
44 * @param dco the POJO containing the new state of the property
46 void onAppliancePropertyChanged(FullyQualifiedApplianceIdentifier applianceIdentifier, DeviceProperty dp);
49 * This method is called whenever an appliance is removed.
51 * @param appliance The XGW homedevice definition of the appliance that was removed
53 void onApplianceRemoved(HomeDevice appliance);
56 * This method is called whenever an appliance is added.
58 * @param appliance The XGW homedevice definition of the appliance that was removed
60 void onApplianceAdded(HomeDevice appliance);