]> git.basschouten.com Git - openhab-addons.git/blob
b959130b5eb8d21650b6dbbc797bdc945152348d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.loxone.internal.controls;
14
15 import org.openhab.binding.loxone.internal.types.LxUuid;
16
17 /**
18  * A LeftRightAnalog type of control on Loxone Miniserver.
19  * <p>
20  * According to Loxone API documentation, LeftRightAnalog control is a virtual input that is analog and has an input
21  * type
22  * up-down buttons. The analog buttons are simulated as a single analog number value. This control behaves exactly the
23  * same as {@link LxControlUpDownAnalog} but has a different name.
24  *
25  * @author Pawel Pieczul - initial contribution
26  *
27  */
28 class LxControlLeftRightAnalog extends LxControlUpDownAnalog {
29
30     static class Factory extends LxControlInstance {
31         @Override
32         LxControl create(LxUuid uuid) {
33             return new LxControlLeftRightAnalog(uuid);
34         }
35
36         @Override
37         String getType() {
38             return "leftrightanalog";
39         }
40     }
41
42     private LxControlLeftRightAnalog(LxUuid uuid) {
43         super(uuid);
44     }
45
46     @Override
47     public void initialize(LxControlConfig config) {
48         super.initialize(config, "Left/Right Analog");
49     }
50 }