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.loxone.internal.controls;
15 import org.openhab.binding.loxone.internal.types.LxUuid;
18 * A dimmer type of control on Loxone Miniserver.
20 * According to Loxone API documentation, a dimmer control is:
22 * <li>a virtual input of dimmer type
25 * @author Stephan Brunner - initial contribution
28 class LxControlDimmer extends LxControlEIBDimmer {
30 static class Factory extends LxControlInstance {
32 LxControl create(LxUuid uuid) {
33 return new LxControlDimmer(uuid);
43 * States additionally to EIBDimmer
45 private static final String STATE_MIN = "min";
46 private static final String STATE_MAX = "max";
47 private static final String STATE_STEP = "step";
49 private LxControlDimmer(LxUuid uuid) {
55 return getStateDoubleValue(STATE_MIN);
60 return getStateDoubleValue(STATE_MAX);
65 return getStateDoubleValue(STATE_STEP);