Use the scripting feature of Shelly Plus and later devices to record power profiles that can be seen in the Firefox Profiler.
Visit http://shelly.combien-consomme.fr/ or download the index.html file and open it in a web browser.
Note: To have permission to request data from Shelly devices in your local network, the page needs to be either a local file, or hosted on a non-https url.
The shelly-script.js file contains the script that needs to be added to the Shelly Plus device (eg. Shelly PlusPlugS) on which the power metering needs to happen.
Other scripts are provided for specific devices:
shelly-script-em.jsfor devices exposing an energy meter (EM1).shelly-script-powerstrip-gen4.jsfor the 4-channel Power Strip Gen4 (records each switch separately).shelly-script-plus2pm-cover.jsfor the Shelly Plus2PM configured in cover/roller mode (records the cover's power, voltage and position).
On the web page, configure the IP address of your Shelly device in your local network (eg. 192.168.1.89) and the script URL.