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.clip2;
15 import java.time.Instant;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import com.google.gson.annotations.SerializedName;
22 * DTO for CLIP 2 light level sensor report.
24 * @author Jacob Laursen - Initial contribution
27 public class LightLevelReport {
28 private @NonNullByDefault({}) Instant changed;
29 private @SerializedName("light_level") int lightLevel;
32 * @return last time the value of this property is changed.
34 public Instant getLastChanged() {
39 * Light level in 10000*log10(lux) +1 measured by sensor.
40 * Logarithmic scale used because the human eye adjusts to light levels and small changes at low lux levels
41 * are more noticeable than at high lux levels. This allows use of linear scale configuration sliders.
43 * @return light level in 10000*log10(lux) +1 measured by sensor
45 public int getLightLevel() {