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.ec3k;
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 an EC3000 Power Monitor.
24 * @author Volker Bier - Initial contribution
26 public class Ec3kSensorDefinition extends SensorDefinition<Ec3kReading> {
28 public Ec3kSensorDefinition() {
29 super(JeeLinkBindingConstants.EC3000_SENSOR_THING_TYPE, "EnergyCount 3000 Power Monitor", "22");
33 public JeeLinkReadingConverter<Ec3kReading> createConverter() {
34 return new Ec3kReadingConverter();
38 public Class<Ec3kReading> getReadingClass() {
39 return Ec3kReading.class;
43 public JeeLinkSensorHandler<Ec3kReading> createHandler(Thing thing) {
44 return new Ec3kSensorHandler(thing, type);