Sending a reset_totals message to Shelly EM

  • Hi all,

    I want to reset the totals of my Shelly EM every day at midnight.

    I'm using Home Assistant to run my home automation.

    I've got Node-Red installed.

    Unfortunately I just don't know enough about MQTT or anything else needed to send the reset_totals message to the Shelly EM

    Can anyone tell me the best way to do this? I've tried all sorts of online resources and just can't seem to figure it out.

  • hello:

    In H.A. you can use the utility metter integration.

    With utility metter you can read the values of the Shelly EM device, with those values you can create different hourly, daily, weekly, quarterly and yearly energy meters. all of them with different rates. It can be adjusted to the billing period of your electric bill.

    I use it to see my electric bill from day to day.

    I forgot, you can reset it anytime you want.

  • Unfortunately I just don't know enough about MQTT or anything else needed to send the reset_totals message to the Shelly EM

    Can anyone tell me the best way to do this? I've tried all sorts of online resources and just can't seem to figure it out.

    I ran across this thread while searching how to do this myself, then figured it out after digging into https://shelly-api-docs.shelly.cloud/gen1/#http-dialect and https://shelly-api-docs.shelly.cloud/gen1/#shelly-em-emeter-index. Plopping http://ip-address-of-your-shelly/emeter/0?reset_totals=1 into a web browser will reset the totals for the 1st input, and same for http://ip-address-of-your-shelly/emeter/1?reset_totals=1 will reset for the 2nd input.