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.hue.internal.handler;
15 import java.util.Collection;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.binding.hue.internal.action.LightActions;
20 import org.openhab.core.thing.binding.ThingHandler;
21 import org.openhab.core.thing.binding.ThingHandlerService;
22 import org.openhab.core.types.Command;
25 * The {@link HueLightActionsHandler} defines interface handlers to handle {@link LightActions}.
27 * @author Christoph Weitkamp - Initial contribution
30 public interface HueLightActionsHandler extends ThingHandler {
33 default Collection<Class<? extends ThingHandlerService>> getServices() {
34 return Set.of(LightActions.class);
38 * Handles a command for a given channel.
40 * @param channel the id of the channel to which the command was sent
41 * @param command the {@link Command}
42 * @param fadeTime duration for execution of the command
44 void handleCommand(String channel, Command command, long fadeTime);