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.max.internal.device;
15 import org.openhab.core.library.types.OpenClosedType;
18 * MAX! Shutter contact device.
20 * @author Andreas Heil - Initial contribution
21 * @author Marcel Verpaalen - OH2 update
23 public class ShutterContact extends Device {
25 private OpenClosedType shutterState;
27 public ShutterContact(DeviceConfiguration c) {
31 public void setShutterState(OpenClosedType shutterState) {
32 if (this.shutterState != shutterState) {
35 this.shutterState = shutterState;
38 public OpenClosedType getShutterState() {
43 public DeviceType getType() {
44 return DeviceType.ShutterContact;