Description
I have a couple of IKEA INSPELNING smart plugs, one of which is hooked up to my espresso machine. When the element is on, it consumes ~1500W, whereas when it's not on, the consumption is <100W. This causes the power_divider
value to toggle between 1 and 10 with the elements duty cycle, which is roughly once every 30s.
This in turn makes it very noticeable that the ac_power_divider
/ac_power_multiplier
attributes are not sampled synchronously with the active_power
attribute as it frequently causes samples that are off by an order of magnitude. This happens when the wrong divider/multiplier (divider in my case) is used to scale the read power value.
The only way to fix this that I can think of is to sample the 2 or 3 attributes that define the instantaneous power measurement in a single ZigBee request in the ElectricalMeasurement class. This will probably also help general performance of HA and the ZigBee network.
This issue may apply more generally to the PolledSensor class, though I don't have other examples of the problem.