Exporting energy report with smarthings-cli?

Is there a way to export all the data related to the consumption of a plug?

If the device reports consumption info in history, you can use the method described here to save it to Google Sheets.

That’s the problem. It doesn’t show the energy consumption on the history even though I can see it on the energy tab in the app.