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.hue.internal.api.dto.clip1;
15 import java.lang.reflect.Type;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import com.google.gson.reflect.TypeToken;
23 * Detailed sensor information
25 * @author Samuel Leisering - Initial contribution
26 * @author Christoph Weitkamp - Initial contribution
29 public class FullSensor extends FullHueObject {
30 public static final Type GSON_TYPE = new TypeToken<Map<String, FullSensor>>() {
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";
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";
48 public static final String CONFIG_PRESENCE_SENSITIVITY = "sensitivity";
49 public static final String CONFIG_PRESENCE_SENSITIVITY_MAX = "sensitivitymax";
51 public static final String CONFIG_LIGHT_LEVEL_THRESHOLD_DARK = "tholddark";
52 public static final String CONFIG_LIGHT_LEVEL_THRESHOLD_OFFSET = "tholdoffset";
54 private @NonNullByDefault({}) Map<String, Object> state;
55 private @NonNullByDefault({}) Map<String, Object> config;
57 public Map<String, Object> getState() {
61 public Map<String, Object> getConfig() {