]> git.basschouten.com Git - openhab-addons.git/blob
fd86701eaf8ca540e34ae2c47c081c31fa08a4da
[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.digitalstrom.internal.lib.structure.devices.deviceparameters;
14
15 /**
16  * The {@link DeviceConstants} contains some constants for digitalSTROM devices.
17  *
18  * @author Alexander Betker - Initial contribution
19  * @author Michael Ochel - updated constants
20  * @author Matthias Siegele - updated constants
21  */
22 public interface DeviceConstants {
23
24     /** digitalSTROM dim step for lights (this value is not in percent!) */
25     static final short DIM_STEP_LIGHT = 11;
26
27     /** move step for roller shutters (this value is not in percent!) */
28     static final short MOVE_STEP_ROLLERSHUTTER = 983;
29
30     /** move step for slats angle by blind/jalousie (this value is not in percent!) */
31     static final short ANGLE_STEP_SLAT = 11;
32
33     /** default move step (this value is not in percent!) */
34     static final short DEFAULT_MOVE_STEP = 11;
35
36     /** default max output value */
37     static final short DEFAULT_MAX_OUTPUTVALUE = 255;
38
39     /** max output value if device (lamp - yellow) is on */
40     static final short MAX_OUTPUT_VALUE_LIGHT = 255;
41
42     /** is open (special case: awning/marquee - closed) */
43     static final int MAX_ROLLERSHUTTER = 65535;
44
45     /** is closed (special case: awning/marquee - open) */
46     static final short MIN_ROLLERSHUTTER = 0;
47
48     /** max slat angle by blind/jalousie */
49     static final short MAX_SLAT_ANGLE = 255;
50
51     /** min slat angle by blind/jalousie */
52     static final short MIN_SLAT_ANGLE = 0;
53
54     /** you can't dim deeper than this value */
55     static final short MIN_DIM_VALUE = 16;
56
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;
59
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;
62
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;
65 }