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

Unusable Sonoff Pow R2 - Refresh rate SPAM #635

Closed
brokuene opened this issue Nov 23, 2021 · 1 comment
Closed

Unusable Sonoff Pow R2 - Refresh rate SPAM #635

brokuene opened this issue Nov 23, 2021 · 1 comment
Labels
question Further information is requested

Comments

@brokuene
Copy link

brokuene commented Nov 23, 2021

When I added Sonoff POW R2 using this integration the POWER sensor works fine in HA but the issue is that it doesn't respect 'scan_interval' property.

Now the POWER sensor refreshes every 2-3 seconds making HA db huge.
Tried multiple different configurations and cannot get rid of the issue.

sonoff:
  username: !secret sonoff_user
  password: !secret sonoff_cloud_password
  mode: local
  force_update: [power]
  scan_interval: '00:05:00' # (optional) default 5 minutes
  sensors: [power]

or

sonoff:
  username: !secret sonoff_user
  password: !secret sonoff_cloud_password
  # debug: True
  mode: local
  reload: always
  # force_update: [power] 
  scan_interval: 00:05:00  # (optional) default 5 minutes
  sensors: [power]  # !!! SonoffLAN v2.1+
  devices:
    10009ed555:
      name: Socket1
      force_update: True

I also tried mode: cloud.

Firmware name: PSC-B67-GL
Application version: 3.5
EWeLink: V 4.17.1

This forces me to disable sonoff as it would harm my HA :(
This looks similar a little bit to issue #272

@AlexxIT AlexxIT added the question Further information is requested label Mar 27, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 27, 2022

The device sends data by itself. force_update+scan_interval setting adds an additional data scan. But can't remove default.

@AlexxIT AlexxIT closed this as completed Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants