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.solarwatt.internal.domain.model;
15 import static org.openhab.binding.solarwatt.internal.SolarwattBindingConstants.*;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.solarwatt.internal.domain.dto.DeviceDTO;
21 * Base class for a EGO Smart Heaters ... see
22 * https://www.solarwatt.de/betriebsanleitungen/solarwatt-manager/solarwatt-manager-flex/geraete-verbinden/ego-smartheater
24 * This fields have been identified to exist:
25 * com.kiwigrid.devices.smartheater.SmartHeater=[
49 * IdFingerPrintVersion,
54 * @author Thomas Schumm - Initial contribution
57 public class SmartHeater extends Device {
58 public static final String SOLAR_WATT_CLASSNAME = "com.kiwigrid.devices.smartheater.SmartHeater";
60 public SmartHeater(DeviceDTO deviceDTO) {
65 public void update(DeviceDTO deviceDTO) {
66 super.update(deviceDTO);
68 this.addWattHourQuantity(CHANNEL_WORK_AC_IN, deviceDTO);
69 this.addWattQuantity(CHANNEL_POWER_AC_IN, deviceDTO);
70 this.addCelsiusQuantity(CHANNEL_TEMPERATURE, deviceDTO);
71 this.addCelsiusQuantity(CHANNEL_TEMPERATURE_SET_MAX, deviceDTO);
72 this.addCelsiusQuantity(CHANNEL_TEMPERATURE_BOILER, deviceDTO);
73 this.addCelsiusQuantity(CHANNEL_TEMPERATURE_SET_MIN, deviceDTO);
74 this.addCelsiusQuantity(CHANNEL_TEMPERATURE_SET, deviceDTO);
78 protected String getSolarWattLabel() {