]> git.basschouten.com Git - openhab-addons.git/blob
f0ae7f0e9578b50aa3fe655a43e819ac738e160d
[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.binding.hue.internal.api.dto.clip1;
14
15 import java.lang.reflect.Type;
16 import java.util.Map;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19
20 import com.google.gson.reflect.TypeToken;
21
22 /**
23  * Detailed sensor information
24  *
25  * @author Samuel Leisering - Initial contribution
26  * @author Christoph Weitkamp - Initial contribution
27  */
28 @NonNullByDefault
29 public class FullSensor extends FullHueObject {
30     public static final Type GSON_TYPE = new TypeToken<Map<String, FullSensor>>() {
31     }.getType();
32
33     public static final String STATE_LAST_UPDATED = "lastupdated";
34     public static final String STATE_BUTTON_EVENT = "buttonevent";
35     public static final String STATE_PRESENCE = "presence";
36     public static final String STATE_TEMPERATURE = "temperature";
37     public static final String STATE_LIGHT_LEVEL = "lightlevel";
38     public static final String STATE_DARK = "dark";
39     public static final String STATE_DAYLIGHT = "daylight";
40     public static final String STATE_STATUS = "status";
41     public static final String STATE_FLAG = "flag";
42
43     public static final String CONFIG_REACHABLE = "reachable";
44     public static final String CONFIG_BATTERY = "battery";
45     public static final String CONFIG_ON = "on";
46     public static final String CONFIG_LED_INDICATION = "ledindication";
47
48     public static final String CONFIG_PRESENCE_SENSITIVITY = "sensitivity";
49     public static final String CONFIG_PRESENCE_SENSITIVITY_MAX = "sensitivitymax";
50
51     public static final String CONFIG_LIGHT_LEVEL_THRESHOLD_DARK = "tholddark";
52     public static final String CONFIG_LIGHT_LEVEL_THRESHOLD_OFFSET = "tholdoffset";
53
54     private @NonNullByDefault({}) Map<String, Object> state;
55     private @NonNullByDefault({}) Map<String, Object> config;
56
57     public Map<String, Object> getState() {
58         return state;
59     }
60
61     public Map<String, Object> getConfig() {
62         return config;
63     }
64 }