sunpeek.core_methods.virtuals.calculations.StrategyPowerFromSensor#
- class sunpeek.core_methods.virtuals.calculations.StrategyPowerFromSensor(component)#
Bases:
VirtualSensorStrategy
Feedthrough strategy, taking power from a Plant or Array
tp
real sensor.Methods
__init__
(component)check_output
(output)Specific checks for the output of virtual sensor calculations.
execute
()Try to calculate strategy, sanitize check output dict and return if ok.
get_feedback
(check_mode)- check_output(output)#
Specific checks for the output of virtual sensor calculations.
- execute()#
Try to calculate strategy, sanitize check output dict and return if ok.
- Returns:
- Raises: