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.digitalstrom.internal.lib.listener;
16 * The {@link TotalPowerConsumptionListener} is notified, if the total power consumption or the total electric meter
19 * @author Michael Ochel - Initial contribution
20 * @author Matthias Siegele - Initial contribution
23 public interface TotalPowerConsumptionListener {
26 * This method is called whenever the total power consumption of the digitalSTROM-System has changed.
28 * @param newPowerConsumption of the digitalSTROM-System
30 void onTotalPowerConsumptionChanged(int newPowerConsumption);
33 * This method is called whenever the total energy meter value in Wh of the digitalSTROM-System has changed.
35 * @param newEnergyMeterValue of the digitalSTROM-System
37 void onEnergyMeterValueChanged(int newEnergyMeterValue);
40 * This method is called whenever the total energy meter value in Ws of the digitalSTROM-System has changed.
42 * @param newEnergyMeterValue of the digitalSTROM-System
44 void onEnergyMeterWsValueChanged(int newEnergyMeterValue);