Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Plug v2 and v3 - Reactive Power Sensor Negative Readings #102

Open
Roving-Ronin opened this issue Oct 18, 2024 · 2 comments
Open

Smart Plug v2 and v3 - Reactive Power Sensor Negative Readings #102

Roving-Ronin opened this issue Oct 18, 2024 · 2 comments

Comments

@Roving-Ronin
Copy link

Roving-Ronin commented Oct 18, 2024

@athom-tech @tarontop

Have you tested this on a number of items including things like computers or clothes dryers etc being plugged into them?
Since adding in the Reactive Power sensor I'm noticing that some plugs, with these particular types of loads, when not being used (and drawing just a few watts of power) are getting negative reactive energy readings.

image

Wondering if the reactive sensor needs to have a filter added to it, rejecting negative readings? i.e.

    reactive_power:
      name: "Reactive Power"
      unit_of_measurement: var
      accuracy_decimals: 0   
      filters:
        - throttle_average: ${sensor_update_interval}
        - lambda: |-
            if (x < 0) {
              return 0;  // Ignore negative values and set to 0
            } else {
              return x;
            }
@tarontop
Copy link
Collaborator

@Roving-Ronin
Copy link
Author

OK thanks. Suggest leaving issue open, to allow future follow up (when CSE7766 component updated)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants