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.tellstick.internal.handler;
15 import org.openhab.core.thing.ChannelUID;
16 import org.openhab.core.types.Command;
17 import org.tellstick.device.iface.Device;
20 * Interface for the telldus bridge modules
22 * @author Jarle Hjortland - Initial contribution
24 public interface TelldusBridgeHandler {
27 * TelldusDeviceController
28 * Add a status listener.
30 * @param deviceStatusListener
33 boolean registerDeviceStatusListener(DeviceStatusListener deviceStatusListener);
36 * Remove a status listener.
38 * @param deviceStatusListener
41 boolean unregisterDeviceStatusListener(DeviceStatusListener deviceStatusListener);
44 * Get a device from the bridgehandler.
49 Device getDevice(String serialNumber);
52 * Get a sensor from the bridgehandler.
57 Device getSensor(String deviceUUId);
60 * Tell the bridge to rescan for new devices.
63 void rescanTelldusDevices();
66 * Get the controller to communicate with devices.
70 TelldusDeviceController getController();
73 * Send a command to the controller.
78 void handleCommand(ChannelUID channelUID, Command command);