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.CHANNEL_POWER_AC_OUT;
16 import static org.openhab.binding.solarwatt.internal.SolarwattBindingConstants.CHANNEL_WORK_AC_OUT;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.binding.solarwatt.internal.domain.dto.DeviceDTO;
22 * Class to represent the producing parts of the photovoltaic installation.
24 * This fields have been identified to exist:
25 * com.kiwigrid.devices.pvplant.PVPlant=[
28 * TimePowerOutForecastGranularity,
35 * DatePowerOutForecastStart,
38 * FractionDeratingLimit,
41 * PowerOutForecastNow,
44 * PowerOutForecastValues,
45 * FractionConfigDeratingLimit,
47 * LocationGeographical,
51 * @author Sven Carstens - Initial contribution
54 public class PVPlant extends Device {
55 public static final String SOLAR_WATT_CLASSNAME = "com.kiwigrid.devices.pvplant.PVPlant";
57 public PVPlant(DeviceDTO deviceDTO) {
62 public void update(DeviceDTO deviceDTO) {
63 super.update(deviceDTO);
65 this.addWattQuantity(CHANNEL_POWER_AC_OUT, deviceDTO);
66 this.addWattHourQuantity(CHANNEL_WORK_AC_OUT, deviceDTO);
70 protected String getSolarWattLabel() {