Continuous advancements in distributed power generation and the growing popularity of electric vehicles create new applications for this family of devices, such as smart control of distributed storage components and controlled charging of electric vehicles according to dynamic grid status. For these grid-friendly tasks, such as imbalance detection or price-sensitive switching, the control box and charging controller provide distributed intelligence in endpoint devices.