]> git.basschouten.com Git - openhab-addons.git/blob
3b761855f6569ee9bd6110bff8ab5d8137cb9157
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.shelly.internal.handler;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.shelly.internal.api.ShellyApiException;
17 import org.openhab.binding.shelly.internal.api.ShellyApiInterface;
18 import org.openhab.binding.shelly.internal.api.ShellyDeviceProfile;
19 import org.openhab.core.thing.Thing;
20 import org.openhab.core.thing.ThingStatusDetail;
21 import org.openhab.core.types.State;
22
23 /**
24  * The {@link ShellyManagerInterface} implements the interface for Shelly Manager to access the thing handler
25  *
26  * @author Markus Michels - Initial contribution
27  */
28 @NonNullByDefault
29 public interface ShellyManagerInterface {
30
31     public Thing getThing();
32
33     public String getThingName();
34
35     public ShellyDeviceProfile getProfile();
36
37     public ShellyDeviceProfile getProfile(boolean forceRefresh) throws ShellyApiException;
38
39     public ShellyApiInterface getApi();
40
41     public ShellyDeviceStats getStats();
42
43     public void resetStats();
44
45     public State getChannelValue(String group, String channel);
46
47     public void setThingOnline();
48
49     public void setThingOffline(ThingStatusDetail detail, String messageKey, Object... arguments);
50
51     public boolean requestUpdates(int requestCount, boolean refreshSettings);
52
53     public void incProtMessages();
54
55     public void incProtErrors();
56 }