I’m attempting to modify the source code of a smart app that I found on GitHub. I would like this app to monitor the power consumption of a fridge, but having trouble finding exactly which data point to read.
Looking at the device itself on the SmartThings Groovy IDE, the fridge has a data structure called powerConsumption, with some sub-properties called deltaEnergy, power and energy. However the deltaEnergy and power properties are always zero, while the energy property has a fixed number that has not changed at all in the past 48 hours (since I started looking at it).
Note: I am reading the powerConsumption property by looking at any devices which have the powerConsumptionReport capability.
Does anybody know what is the right way to look at power consumption?