2 * Copyright (c) 2010-2023 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 {
33 String getThingName();
35 ShellyDeviceProfile getProfile();
37 ShellyDeviceProfile getProfile(boolean forceRefresh) throws ShellyApiException;
39 ShellyApiInterface getApi();
41 ShellyDeviceStats getStats();
45 State getChannelValue(String group, String channel);
47 void setThingOnline();
49 void setThingOffline(ThingStatusDetail detail, String messageKey, Object... arguments);
51 boolean requestUpdates(int requestCount, boolean refreshSettings);
53 void incProtMessages();