io.github.zeroone3010.yahueapi.BasicSensor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yetanotherhueapi Show documentation
Show all versions of yetanotherhueapi Show documentation
A library for controlling Philips Hue lights.
package io.github.zeroone3010.yahueapi;
import io.github.zeroone3010.yahueapi.domain.SensorDto;
import java.net.URL;
import java.time.ZonedDateTime;
import java.util.Map;
import java.util.function.Supplier;
import java.util.logging.Logger;
class BasicSensor implements Sensor {
private static final Logger logger = Logger.getLogger("BasicSensor");
private static final String UTC_SUFFIX = "+00:00[UTC]";
private static final String NO_LAST_UPDATED_DATA = "none";
protected final String id;
protected final String name;
protected final String productName;
protected final URL baseUrl;
protected final SensorType type;
private final Supplier