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 all inverters.
23 * This fields have been identified to exist:
24 * com.kiwigrid.devices.inverter.Inverter=[
35 * @author Sven Carstens - Initial contribution
38 public class Inverter extends Device {
39 public static final String SOLAR_WATT_CLASSNAME = "com.kiwigrid.devices.inverter.Inverter";
41 public Inverter(DeviceDTO deviceDTO) {
46 public void update(DeviceDTO deviceDTO) {
47 super.update(deviceDTO);
49 this.addWattHourQuantity(CHANNEL_WORK_AC_OUT, deviceDTO);
50 this.addWattQuantity(CHANNEL_POWER_AC_OUT_MAX, deviceDTO);
51 this.addWattQuantity(CHANNEL_POWER_AC_OUT, deviceDTO);
52 this.addWattQuantity(CHANNEL_POWER_AC_OUT_LIMIT, deviceDTO);
54 this.addWattQuantity(CHANNEL_POWER_INSTALLED_PEAK, deviceDTO, true);
58 protected String getSolarWattLabel() {