Shelly 1PM not accumilating Total Consumption

By | 2022-09-22

If for some reason your Shelly 1PM is not accumulating total consumption data it is possible it does not have the right time or time sync is not correct. You can check this from the status output, http://ShellyIP/status. In my case I was getting this:

	{
		"wifi_sta":
		{
...
		},
		"cloud":
		{
...
		},
		"mqtt":
		{
...
		},
		"time":"",
		"unixtime":0,
...
		"meters":
		[
			{
				"power":2.51,
				"overpower":0.00,
				"is_valid":true,
				"timestamp":0,
				"counters":
				[
					0.000, 
					0.000, 
					0.000
				],
				"total":0
			}
		],
...
	}

It was returning a “time” setting of “”, blank and the meters->counters are all 0.000 and the total consumed is also 0; “total”:0.

To fix this log into the shelly website and go to Internet & Security->SNTP Server and make sure you have an IP address for a reachable time server. I had a DNS name in there and I am guessing it had a hard time resolving it. Changed to the IP address of the NTP server and it was able to get the correct time.

	{
		"wifi_sta":
		{
...
		},
		"cloud":
		{
...
		},
		"mqtt":
		{
...
		},
		"time":"12:40",
		"unixtime":1663843249,
...
		"meters":
		[
			{"power":234.84,
				"overpower":0.00,
				"is_valid":true,
				"timestamp":1663850449,
				"counters":
				[
					234.620, 
					234.391, 
					234.930
				],
				"total":10116
			}
		],
...
	}

Pulling the status again we can see that the time is update and correct “time”:”12:40″ and the counters are reflecting the accumulated data with a valid total consumed value “total”:10116

This site uses Akismet to reduce spam. Learn how your comment data is processed.