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

Too much SPAM from PSF-X67 #272

Closed
slydiman opened this issue Nov 2, 2020 · 5 comments
Closed

Too much SPAM from PSF-X67 #272

slydiman opened this issue Nov 2, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@slydiman
Copy link

slydiman commented Nov 2, 2020

I have PSF-X67 device.
This is my first issue #184
Now it works fine.
The config is very simple

sonoff:
  username: !secret sonoff_username
  password: !secret sonoff_password

The problem is that the device updates the current, voltage, power, consumption every 3 seconds.
I have a huge database (around 1GB per day).
I'm not sure the option scan_interval works for these properties.
Is there a way to reduce this SPAM, for example every 30 sec instead of every 3 sec?

@rkiller2006
Copy link

The same for me, I add local mode. The spam disappeared.

@slydiman
Copy link
Author

In case of local mode I see updates of the power, voltage and current only while eWeLink app on the smartphone is running.

@rkiller2006
Copy link

In case of local mode I see updates of the power, voltage and current only while eWeLink app on the smartphone is running.

I see the updates in real time in my case:

My config:
username: !secret ewelink_username
password: !secret ewelink_password
mode: local
force_update: [power, current, voltage]
scan_interval: '00:01:00' # (optional) default 5 minutes
sensors: [power, current, voltage]

@AlexxIT AlexxIT added the enhancement New feature or request label Dec 8, 2020
@mdima
Copy link

mdima commented Jan 16, 2022

My config: username: !secret ewelink_username password: !secret ewelink_password mode: local force_update: [power, current, voltage] scan_interval: '00:01:00' # (optional) default 5 minutes sensors: [power, current, voltage]

Using this configuration all my entities (power, current and voltage) disappear, I am forced to use the cloud mode.

If I check the log file I can read:

2022-01-16 07:39:44  DEBUG    main          SysInfo: {'version': '2021.12.9', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.9.7', 'docker': True, 'arch': 'x86_64', 'os_name': 'Linux', 'os_version': '5.10.88', 'user': 'root', 'supervisor': '2021.12.2', 'host_os': 'Home Assistant OS 7.1', 'docker_version': '20.10.9', 'chassis': 'vm'}
2022-01-16 07:39:44  DEBUG    main          LOCAL mode start
2022-01-16 07:39:51  DEBUG    sonoff_cloud  29 devices loaded from the Cloud Server
2022-01-16 07:39:51  DEBUG    main          Init force_update for attributes: {'voltage', 'power', 'current'}
2022-01-16 07:39:51  DEBUG    main          Init auto sensors for: ['temperature', 'humidity', 'power', 'current', 'voltage', 'rssi']

and in the .sonoff.json the devices are present, but no one device is generated. :S

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 24, 2022

Check this #504 (comment)

@AlexxIT AlexxIT closed this as completed Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants