]> git.basschouten.com Git - openhab-addons.git/blob
75c83f68ca0ab3af14fe32223a85df8e3a0057c5
[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.nibeuplink.internal.handler;
14
15 import java.util.Map;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.nibeuplink.internal.config.NibeUplinkConfiguration;
20 import org.openhab.binding.nibeuplink.internal.connector.UplinkWebInterface;
21 import org.openhab.core.thing.Channel;
22 import org.openhab.core.thing.ThingStatus;
23 import org.openhab.core.thing.ThingStatusDetail;
24 import org.openhab.core.thing.binding.ThingHandler;
25 import org.openhab.core.types.State;
26
27 /**
28  * public interface of the {@link UplinkBaseHandler}
29  *
30  * @author Alexander Friese - initial contribution
31  */
32 @NonNullByDefault
33 public interface NibeUplinkHandler extends ThingHandler, ChannelProvider {
34     /**
35      * Called from {@link NibeUplinkWebInterface#authenticate()} to update
36      * the thing status because updateStatus is protected.
37      *
38      * @param status Bridge status
39      * @param statusDetail Bridge status detail
40      * @param description Bridge status description
41      */
42     void setStatusInfo(ThingStatus status, ThingStatusDetail statusDetail, @Nullable String description);
43
44     /**
45      * Provides the web interface object.
46      *
47      * @return The web interface object
48      */
49     UplinkWebInterface getWebInterface();
50
51     void updateChannelStatus(Map<Channel, State> values);
52
53     NibeUplinkConfiguration getConfiguration();
54 }