]> git.basschouten.com Git - openhab-addons.git/blob
62715d834f24c94cc2c254f7bfbf33d002c18b2c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.avmfritz.internal.handler;
14
15 import java.util.Collection;
16 import java.util.Collections;
17
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;
22
23 /**
24  * The {@link AVMFritzHeatingActionsHandler} defines interface handlers to handle heating thing actions.
25  *
26  * @author Christoph Weitkamp - Initial contribution
27  */
28 @NonNullByDefault
29 public interface AVMFritzHeatingActionsHandler extends ThingHandler {
30
31     @Override
32     default Collection<Class<? extends ThingHandlerService>> getServices() {
33         return Collections.singleton(AVMFritzHeatingActions.class);
34     }
35
36     /**
37      * Activates the "Boost" mode of the heating thermostat or heating group.
38      *
39      * @param duration Duration in seconds, min. 1, max. 86400, 0 for deactivation.
40      */
41     void setBoostMode(long duration);
42
43     /**
44      * Activates the "Window Open" mode of the heating thermostat or heating group.
45      *
46      * @param duration Duration in seconds, min. 1, max. 86400, 0 for deactivation.
47      */
48     void setWindowOpenMode(long duration);
49 }