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.satel.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link SatelThingConfig} contains common configuration values for Satel devices.
20 * @author Krzysztof Goworek - Initial contribution
23 public class SatelThingConfig {
25 public static final String ID = "id";
26 public static final String UP_ID = "upId";
27 public static final String DOWN_ID = "downId";
32 private boolean invertState;
33 private boolean forceArming;
34 private boolean commandOnly;
35 private boolean wireless;
38 * @return device identifier
45 * @return for a shutter: output number to control "up" direction
47 public int getUpId() {
52 * @return for a shutter: output number to control "down" direction
54 public int getDownId() {
59 * @return if <code>true</code>, device's state should be inverted
61 public boolean isStateInverted() {
66 * @return if <code>true</code>, forces arming a partition
68 public boolean isForceArmingEnabled() {
73 * @return if <code>true</code> the thing should accept only commands, it does not update its state
75 public boolean isCommandOnly() {
80 * @return if <code>true</code> the thing is a wireless device
82 public boolean isWireless() {