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.io.hueemulation.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The configuration for {@link HueEmulationService}.
21 * @author David Graeff - Initial Contribution
24 public class HueEmulationConfig {
25 public boolean pairingEnabled = false;
26 public static final String CONFIG_PAIRING_ENABLED = "pairingEnabled";
29 * The Amazon echos have no means to recreate a new api key and they don't care about the 403-forbidden http status
30 * code. If the addon has pruned its api-key list, echos will not be able to discover new devices. Set this option
31 * to just create a new user on the fly.
33 public boolean createNewUserOnEveryEndpoint = false;
34 public static final String CONFIG_CREATE_NEW_USER_ON_THE_FLY = "createNewUserOnEveryEndpoint";
35 public boolean temporarilyEmulateV1bridge = false;
36 public static final String CONFIG_EMULATE_V1 = "temporarilyEmulateV1bridge";
37 public boolean permanentV1bridge = false;
39 /** Pairing timeout in seconds */
40 public int pairingTimeout = 60;
42 * The field discoveryIps was named discoveryIp in the frontend for some time and thus user probably
43 * have it in their local config saved under the non plural version.
45 public @Nullable String discoveryIp;
46 public int discoveryHttpPort = 0;
47 /** Comma separated list of tags */
48 public String restrictToTagsSwitches = "Switchable";
49 /** Comma separated list of tags */
50 public String restrictToTagsColorLights = "ColorLighting";
51 /** Comma separated list of tags */
52 public String restrictToTagsWhiteLights = "Lighting";
53 /** Comma separated list of tags */
54 public String ignoreItemsWithTags = "internal";
56 public static final String CONFIG_UUID = "uuid";
57 public String uuid = "";
58 public String devicename = "openHAB";