Thank you! More here: Switching on device based on average available power over time window - #4 by rlkoshak