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.digitalstrom.internal.lib.structure.devices.deviceparameters;
16 * The {@link DeviceConstants} contains some constants for digitalSTROM devices.
18 * @author Alexander Betker - Initial contribution
19 * @author Michael Ochel - updated constants
20 * @author Matthias Siegele - updated constants
22 public interface DeviceConstants {
24 /** digitalSTROM dim step for lights (this value is not in percent!) */
25 static final short DIM_STEP_LIGHT = 11;
27 /** move step for roller shutters (this value is not in percent!) */
28 static final short MOVE_STEP_ROLLERSHUTTER = 983;
30 /** move step for slats angle by blind/jalousie (this value is not in percent!) */
31 static final short ANGLE_STEP_SLAT = 11;
33 /** default move step (this value is not in percent!) */
34 static final short DEFAULT_MOVE_STEP = 11;
36 /** default max output value */
37 static final short DEFAULT_MAX_OUTPUTVALUE = 255;
39 /** max output value if device (lamp - yellow) is on */
40 static final short MAX_OUTPUT_VALUE_LIGHT = 255;
42 /** is open (special case: awning/marquee - closed) */
43 static final int MAX_ROLLERSHUTTER = 65535;
45 /** is closed (special case: awning/marquee - open) */
46 static final short MIN_ROLLERSHUTTER = 0;
48 /** max slat angle by blind/jalousie */
49 static final short MAX_SLAT_ANGLE = 255;
51 /** min slat angle by blind/jalousie */
52 static final short MIN_SLAT_ANGLE = 0;
54 /** you can't dim deeper than this value */
55 static final short MIN_DIM_VALUE = 16;
57 /** this is the index to get the output value (min-, max value) of almost all devices */
58 static final short DEVICE_SENSOR_OUTPUT = 0;
60 /** this is the index to get the output value (min-, max value) of shade devices */
61 static final short DEVICE_SENSOR_SLAT_POSITION_OUTPUT = 2;
63 /** this index is needed to get the angle of the slats (if device is a blind/jalousie) */
64 static final short DEVICE_SENSOR_SLAT_ANGLE_OUTPUT = 4;