See the documentation:
https://shelly-api-docs.shelly.cloud/gen2/ComponentsAndServices/PM1/
-->-->-->-->
Note
- ret_aenergy - the active energy added to this container is also added to aenergy container. All the consumed energy is collected in aenergy regardless of the direction(consumed or returned) of the active energy.