]> git.basschouten.com Git - openhab-addons.git/blob
0426a6e77abc33a3f6c10cfb0ea32013351b251e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.adorne.internal.hub;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link AdorneHubChangeNotify} interface is used by the {@link AdorneHubController} to notify listeners about
19  * Adorne device status and hub connection changes.
20  *
21  * @author Mark Theiding - Initial contribution
22  */
23 @NonNullByDefault
24 public interface AdorneHubChangeNotify {
25     /**
26      * Notify listener about state change of on/off and brightness state
27      *
28      * @param zoneId zone ID for which change occurred
29      * @param onOff new on/off state
30      * @param brightness new brightness
31      */
32     void stateChangeNotify(int zoneId, boolean onOff, int brightness);
33
34     /**
35      * Notify listener about hub connection change
36      *
37      * @param connected new connection state
38      */
39     void connectionChangeNotify(boolean connected);
40 }