How to use smart energy storage