Skip to content

Sampling skew for IKEA INSPELNING in ElectricalMeasurement class #388

Open
@sigurasg

Description

@sigurasg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions