akkudoktoreos.devices.genetic.homeappliance.HomeAppliance
- class akkudoktoreos.devices.genetic.homeappliance.HomeAppliance(parameters: HomeApplianceParameters, optimization_hours: int, prediction_hours: int)
Bases:
object- __init__(parameters: HomeApplianceParameters, optimization_hours: int, prediction_hours: int)
Methods
__init__(parameters, optimization_hours, ...)Returns the current load curve.
get_load_for_hour(hour)Returns the load for a specific hour.
Resets the load curve.
set_starting_time(start_hour[, ...])Sets the start time of the device and generates the corresponding load curve.
- __init__(parameters: HomeApplianceParameters, optimization_hours: int, prediction_hours: int)
- set_starting_time(start_hour: int, global_start_hour: int = 0) int
Sets the start time of the device and generates the corresponding load curve.
- Parameters:
start_hour – The hour at which the device should start.
- reset_load_curve() None
Resets the load curve.
- get_load_curve() ndarray
Returns the current load curve.
- get_load_for_hour(hour: int) float
Returns the load for a specific hour.
- Parameters:
hour – The hour for which the load is queried.
- Returns:
The load in watts for the specified hour.