Class TimeOfUseTariffTibberImpl
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.timeofusetariff.tibber.TimeOfUseTariffTibberImpl
- All Implemented Interfaces:
OpenemsComponent
,TimeOfUseTariff
,TimeOfUseTariffTibber
public class TimeOfUseTariffTibberImpl
extends AbstractOpenemsComponent
implements TimeOfUseTariff, OpenemsComponent, TimeOfUseTariffTibber
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.timeofusetariff.tibber.TimeOfUseTariffTibber
TimeOfUseTariffTibber.ChannelId
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected final Runnable
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Handles @Deactivate of implementations.debugLog()
Gets some output that is suitable for a continuous Debug log.Gives electricity prices; one value per 15 minutes.Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Field Details
-
CLIENT_ERROR_CODE
protected static final int CLIENT_ERROR_CODE- See Also:
-
TOO_MANY_REQUESTS_CODE
protected static final int TOO_MANY_REQUESTS_CODE- See Also:
-
task
-
-
Constructor Details
-
TimeOfUseTariffTibberImpl
public TimeOfUseTariffTibberImpl()
-
-
Method Details
-
deactivate
protected void deactivate()Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsComponent
-
getPrices
Description copied from interface:TimeOfUseTariff
Gives electricity prices; one value per 15 minutes.E.g. if called at 10:05, the first value stands for 10:00 to 10:15; second value for 10:15 to 10:30.
- Specified by:
getPrices
in interfaceTimeOfUseTariff
- Returns:
- the prices;
invalid reference
TimeOfUsePrices#empty(java.time.ZonedDateTime)
-
debugLog
Description copied from interface:OpenemsComponent
Gets some output that is suitable for a continuous Debug log. Returns 'null' by default which causes no output.- Specified by:
debugLog
in interfaceOpenemsComponent
- Returns:
- the debug log output
-