2 * Copyright (c) 2010-2024 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.nikohomecontrol.internal.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The {@link NhcEnergyMeterEvent} interface is used to pass energyMeters meter events received from the Niko Home
21 * controller to the consuming client. It is designed to pass events to openHAB handlers that implement this interface.
22 * Because of the design, the org.openhab.binding.nikohomecontrol.internal.protocol package can be extracted and used
23 * independent of openHAB.
25 * @author Mark Herwege - Initial Contribution
28 public interface NhcEnergyMeterEvent {
31 * This method is called when an energyMeter event is received from the Niko Home Control controller.
33 * @param power current power consumption/production in W (positive for consumption), null for an empty reading
35 void energyMeterEvent(@Nullable Integer power);
38 * Called to indicate the energyMeter has been initialized.
41 void energyMeterInitialized();
44 * Called to indicate the energyMeter has been removed from the Niko Home Control controller.
47 void energyMeterRemoved();