]> git.basschouten.com Git - openhab-addons.git/blob
b268d0be68f13b45425e84eca0056d44aa1ca84a
[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.max.internal.device;
14
15 import org.openhab.core.library.types.OnOffType;
16
17 /**
18  * MAX! EcoSwitch.
19  *
20  * @author Marcel Verpaalen - Initial contribution
21  */
22 public class EcoSwitch extends ShutterContact {
23
24     private OnOffType ecoMode;
25
26     public EcoSwitch(DeviceConfiguration c) {
27         super(c);
28     }
29
30     @Override
31     public DeviceType getType() {
32         return DeviceType.EcoSwitch;
33     }
34
35     public OnOffType getEcoMode() {
36         return ecoMode;
37     }
38
39     public void setEcoMode(OnOffType ecoMode) {
40         this.ecoMode = ecoMode;
41     }
42 }