Skip to content

Commit

Permalink
Evcs cluster SelfConsumption Patch
Browse files Browse the repository at this point in the history
- Added missing event handler to EvcsClusterSelfConsumption
- Removed ess from configuration

- Simulator: BatteryDummy - added missing StartStoppable channels
  • Loading branch information
clehne authored Feb 25, 2021
1 parent 1867e13 commit 354e874
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
@AttributeDefinition(name = "Evcs target filter", description = "This is auto-generated by 'Evcs-IDs'.")
String Evcs_target() default "";

@AttributeDefinition(name = "Ess-ID", description = "ID of Ess device.")
String ess_id() default "ess0";

String webconsole_configurationFactory_nameHint() default "EVCS Cluster Self Consumption [{id}]";

}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void activate(ComponentContext context, ConfigPeakShaving config) throws Openems

this.config = config;

// update filter for 'evcss' component
// update filter for 'evcs' component
if (OpenemsComponent.updateReferenceFilter(this.cm, this.servicePid(), "Evcs", config.evcs_ids())) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.osgi.service.component.annotations.ReferencePolicyOption;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventConstants;
import org.osgi.service.event.EventHandler;
import org.osgi.service.metatype.annotations.Designate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -37,7 +38,7 @@
EventConstants.EVENT_TOPIC + "=" + EdgeEventConstants.TOPIC_CYCLE_AFTER_CONTROLLERS, //
EventConstants.EVENT_TOPIC + "=" + EdgeEventConstants.TOPIC_CYCLE_BEFORE_PROCESS_IMAGE //
})
public class EvcsClusterSelfConsumption extends AbstractEvcsCluster implements OpenemsComponent, Evcs {
public class EvcsClusterSelfConsumption extends AbstractEvcsCluster implements OpenemsComponent, Evcs, EventHandler {

private final Logger log = LoggerFactory.getLogger(EvcsClusterSelfConsumption.class);

Expand Down

0 comments on commit 354e874

Please sign in to comment.