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.handler.sensors;
15 import static org.openhab.binding.hue.internal.HueBindingConstants.*;
19 import java.util.stream.Collectors;
20 import java.util.stream.Stream;
22 import org.eclipse.jdt.annotation.NonNullByDefault;
23 import org.openhab.binding.hue.internal.api.dto.clip1.FullSensor;
24 import org.openhab.binding.hue.internal.api.dto.clip1.SensorConfigUpdate;
25 import org.openhab.binding.hue.internal.handler.HueSensorHandler;
26 import org.openhab.core.config.core.Configuration;
27 import org.openhab.core.thing.Thing;
28 import org.openhab.core.thing.ThingTypeUID;
33 * @author Meng Yiqi - Initial contribution
36 public class ClipHandler extends HueSensorHandler {
37 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Stream
38 .of(THING_TYPE_CLIP_GENERIC_STATUS, THING_TYPE_CLIP_GENERIC_FLAG).collect(Collectors.toSet());
40 public ClipHandler(Thing thing) {
45 protected SensorConfigUpdate doConfigurationUpdate(Map<String, Object> configurationParameters) {
46 return new SensorConfigUpdate();
50 protected void doSensorStateChanged(FullSensor sensor, Configuration config) {