Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions io.openems.edge.evcs.openwb/bnd.bnd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Bundle-Version: 1.0.0.${tstamp}
-buildpath: \
${buildpath},\
io.openems.common,\
io.openems.common.bridge.http,\
io.openems.edge.bridge.http,\
io.openems.edge.common,\
io.openems.edge.evcs.api,\
io.openems.edge.meter.api,\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;

import io.openems.edge.meter.api.PhaseRotation;

@ObjectClassDefinition(//
name = "EVCS OpenWB", //
description = "Implements the evcs component for OpenWB Series2 with internal chargepoints via HTTP API")
Expand All @@ -26,6 +28,9 @@
@AttributeDefinition(name = "Chargepoint", description = "Number of the internal chargepoint")
ChargePoint chargePoint() default ChargePoint.CP0;

@AttributeDefinition(name = "Phase rotation", description = "The way in which the phases are physically rotated.")
PhaseRotation phaseRotation() default PhaseRotation.L1_L2_L3;

String webconsole_configurationFactory_nameHint() default "EVCS OpenWB [{id}]";

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ public enum ChannelId implements io.openems.edge.common.channel.ChannelId {
* Slave Communication Failed Fault.
*
* <p>
* Indicates a failure in communication with a slave device, which might affect
* system operations.
* Indicates a failure in communication with the OpenWB charger, which might
* affect system operations.
*
* <ul>
* <li>Interface: ShellyPlug
* <li>Interface: EvcsOpenWb
* <li>Type: State
* </ul>
*/
SLAVE_COMMUNICATION_FAILED(Doc.of(Level.FAULT)//
.text("Communication with slave device failed."));
.text("Communication with OpenWB charger failed."));

private final Doc doc;

Expand All @@ -34,4 +34,14 @@ public Doc doc() {
return this.doc;
}
}

/**
* Internal method to set the 'nextValue' on
* {@link ChannelId#SLAVE_COMMUNICATION_FAILED} Channel.
*
* @param value the next value
*/
public default void _setSlaveCommunicationFailed(boolean value) {
this.channel(ChannelId.SLAVE_COMMUNICATION_FAILED).setNextValue(value);
}
}
Loading