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.adorne.internal.hub;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link AdorneHubChangeNotify} interface is used by the {@link AdorneHubController} to notify listeners about
19 * Adorne device status and hub connection changes.
21 * @author Mark Theiding - Initial contribution
24 public interface AdorneHubChangeNotify {
26 * Notify listener about state change of on/off and brightness state
28 * @param zoneID zone ID for which change occurred
29 * @param onOff new on/off state
30 * @param brightness new brightness
32 public void stateChangeNotify(int zoneId, boolean onOff, int brightness);
35 * Notify listener about hub connection change
37 * @param connected new connection state
39 public void connectionChangeNotify(boolean connected);