]> git.basschouten.com Git - openhab-addons.git/blob
2340ae7b19a16aba4769e5ca9a2cd65e11a96247
[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.handler.sensors;
14
15 import static org.openhab.binding.hue.internal.HueBindingConstants.*;
16
17 import java.util.Map;
18 import java.util.Set;
19 import java.util.stream.Collectors;
20 import java.util.stream.Stream;
21
22 import org.eclipse.jdt.annotation.NonNullByDefault;
23 import org.openhab.binding.hue.internal.dto.FullSensor;
24 import org.openhab.binding.hue.internal.dto.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;
29
30 /**
31  * CLIP Sensor
32  *
33  * @author Meng Yiqi - Initial contribution
34  */
35 @NonNullByDefault
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());
39
40     public ClipHandler(Thing thing) {
41         super(thing);
42     }
43
44     @Override
45     protected SensorConfigUpdate doConfigurationUpdate(Map<String, Object> configurationParameters) {
46         return new SensorConfigUpdate();
47     }
48
49     protected void doSensorStateChanged(FullSensor sensor, Configuration config) {
50     }
51 }