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.nanoleaf.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The {@link NanoleafControllerConfig} class contains fields mapping controller configuration parameters.
21 * @author Martin Raepple - Initial contribution
24 public class NanoleafControllerConfig {
26 /** IP address or hostname of the light panels controller */
27 public static final String ADDRESS = "address";
28 public String address = "";
29 /** Port number of the light panels controller */
30 public static final String PORT = "port";
31 public int port = 16021;
32 /** Authorization token for controller API */
33 public static final String AUTH_TOKEN = "authToken";
34 public @Nullable String authToken;
35 /** Light panels status refresh interval */
36 public static final String REFRESH_INTERVAL = "refreshInterval";
37 public int refreshInterval = 60;
38 /** Nanoleaf device type: Light panels or Canvas */
39 public static final String DEVICE_TYPE = "deviceType";
40 public String deviceType = "lightPanels";