In EnergySaver you can configure tasks and automations that can control devices, such as controlling a Wi-Fi Energy Socket based on time, sunset, sunrise or when delivering power back into the grid.
You can find Energy Saver in the app at Settings > Energy Saver