]> git.basschouten.com Git - openhab-addons.git/blob
4662f492d2d0501b71c4fd01f9d6f55e89f0a366
[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.io.hueemulation.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The configuration for {@link HueEmulationService}.
20  *
21  * @author David Graeff - Initial Contribution
22  */
23 @NonNullByDefault
24 public class HueEmulationConfig {
25     public boolean pairingEnabled = false;
26     public static final String CONFIG_PAIRING_ENABLED = "pairingEnabled";
27
28     /**
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.
32      */
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;
38
39     /** Pairing timeout in seconds */
40     public int pairingTimeout = 60;
41     /**
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.
44      */
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";
55
56     public static final String CONFIG_UUID = "uuid";
57     public String uuid = "";
58     public String devicename = "openHAB";
59 }