2 * Copyright (c) 2010-2022 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 wallbox.
23 * This fields have been identified to exist:
24 * com.kiwigrid.devices.evstation.EVStation=[
32 * StateOfChargeMinimum,
33 * WorkACInLimitSession,
57 * @author Sven Carstens - Initial contribution
60 public class EVStation extends Device {
61 public static final String SOLAR_WATT_CLASSNAME = "com.kiwigrid.devices.evstation.EVStation";
63 public EVStation(DeviceDTO deviceDTO) {
68 public void update(DeviceDTO deviceDTO) {
69 super.update(deviceDTO);
71 this.addStringState(CHANNEL_CONNECTIVITY_STATUS, deviceDTO);
72 this.addStringState(CHANNEL_MODE_STATION, deviceDTO);
73 this.addWattQuantity(CHANNEL_POWER_AC_IN, deviceDTO);
74 this.addWattHourQuantity(CHANNEL_WORK_AC_IN, deviceDTO);
75 this.addWattHourQuantity(CHANNEL_WORK_AC_IN_SESSION, deviceDTO);
79 protected String getSolarWattLabel() {