Hi - I’ve got a couple of Shelly 2ProPM relays. In the web interface I can see various sensors like voltage and power. The HA integration provides these as sensors in HA and also provides Energy. On one of the devices both instantaneous power values are reported correctly but only one of the switches reports a cumulative energy value, the other stays at 0. Are these energy entities created locally in the integration or do they come from somewhere on the physical device (which doesn’t show in its web UI)? Is there a way to see some detail about how the sensor value is reported or calculated?
Update: I believe this is a problem with the device. I called the shelly.GetStatus rpc endpoint with curl and got the following:
“switch:0”: {
"id": 0,
"source": "WS_in",
"output": true,
"apower": 41.8,
"voltage": 122.2,
"current": 0.366,
"pf": 0.94,
"aenergy": {
"total": 0.000,
"by_minute": [
0.000,
0.000,
0.000
],
"minute_ts": 1681547294
},
"temperature": {
"tC": 52.2,
"tF": 126.0
}
},
"switch:1": {
"id": 1,
"source": "WS_in",
"output": true,
"apower": 22.9,
"voltage": 122.3,
"current": 0.323,
"pf": 0.71,
"aenergy": {
"total": 28202.398,
"by_minute": [
285.641,
405.284,
398.721
],
"minute_ts": 1685904822
},
"temperature": {
"tC": 61.3,
"tF": 142.3
}
},
Switch0 is showing 0 for all aenergy values, even though the apower is non-zero. I guess there’s something that needs to be done with the device, any ideas?
So, embarrassingly simple. I updated the firmware on it and I now have the energy values on switch0.