2 * Copyright (c) 2010-2024 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.shelly.internal.handler;
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;
24 * The {@link ShellyManagerInterface} implements the interface for Shelly Manager to access the thing handler
26 * @author Markus Michels - Initial contribution
29 public interface ShellyManagerInterface {
31 public Thing getThing();
33 public String getThingName();
35 public ShellyDeviceProfile getProfile();
37 public ShellyDeviceProfile getProfile(boolean forceRefresh) throws ShellyApiException;
39 public ShellyApiInterface getApi();
41 public ShellyDeviceStats getStats();
43 public void resetStats();
45 public State getChannelValue(String group, String channel);
47 public void setThingOnline();
49 public void setThingOffline(ThingStatusDetail detail, String messageKey, Object... arguments);
51 public boolean requestUpdates(int requestCount, boolean refreshSettings);
53 public void incProtMessages();
55 public void incProtErrors();