2 * Copyright (c) 2010-2022 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.avmfritz.internal.handler;
15 import java.util.Collection;
16 import java.util.Collections;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.binding.avmfritz.internal.actions.AVMFritzHeatingActions;
20 import org.openhab.core.thing.binding.ThingHandler;
21 import org.openhab.core.thing.binding.ThingHandlerService;
24 * The {@link AVMFritzHeatingActionsHandler} defines interface handlers to handle heating thing actions.
26 * @author Christoph Weitkamp - Initial contribution
29 public interface AVMFritzHeatingActionsHandler extends ThingHandler {
32 default Collection<Class<? extends ThingHandlerService>> getServices() {
33 return Collections.singleton(AVMFritzHeatingActions.class);
37 * Activates the "Boost" mode of the heating thermostat or heating group.
39 * @param duration Duration in seconds, min. 1, max. 86400, 0 for deactivation.
41 void setBoostMode(long duration);
44 * Activates the "Window Open" mode of the heating thermostat or heating group.
46 * @param duration Duration in seconds, min. 1, max. 86400, 0 for deactivation.
48 void setWindowOpenMode(long duration);