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.jeelink.internal.lacrosse;
15 import org.openhab.binding.jeelink.internal.JeeLinkBindingConstants;
16 import org.openhab.binding.jeelink.internal.JeeLinkReadingConverter;
17 import org.openhab.binding.jeelink.internal.JeeLinkSensorHandler;
18 import org.openhab.binding.jeelink.internal.SensorDefinition;
19 import org.openhab.core.thing.Thing;
22 * Sensor Defintion of a TX22 Temperature/Humidity Sensor.
24 * @author Volker Bier - Initial contribution
26 public class Tx22SensorDefinition extends SensorDefinition<Tx22Reading> {
28 public Tx22SensorDefinition() {
29 super(JeeLinkBindingConstants.TX22_SENSOR_THING_TYPE, "TX22 Temperature/Humidity Sensor", "WS");
33 public JeeLinkReadingConverter<Tx22Reading> createConverter() {
34 return new Tx22ReadingConverter();
38 public Class<Tx22Reading> getReadingClass() {
39 return Tx22Reading.class;
43 public JeeLinkSensorHandler<Tx22Reading> createHandler(Thing thing) {
44 return new Tx22SensorHandler(thing, type);