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

Utilize SDS0X1 'Working Period' command #3749

Merged
merged 9 commits into from Sep 10, 2018

Conversation

edelstahlratte
Copy link
Contributor

It has the advantage of offloading the sleep/wake/read-cycle management to the SDS0X1 sensor.

The sensor will wake up every x minutes and take a reading by itself.
On request the sensor reports the last valid reading without waking up...

@FabianHM
Copy link

Helo,
thanks for the good Idea with 5 Minutes Sleep.
I would like to change the interval of default 5 minutes. Unfortunately, the comand "WORKING_PERIOD" does not work. (MQT: stat/sonoff/RESULT = {"Command":"Unknown"})
How can I change the interval without recompiling?
Thanks for help,
Greetings Fabian

@arendst
Copy link
Owner

arendst commented Sep 23, 2018

Only by re-compiling. To what value would you like it to be set?

@edelstahlratte
Copy link
Contributor Author

Like @arendst said: you have to compile again...

@FabianHM
Copy link

Okay, thanks for fast feedback.
I think for my needs it's about every 15 minutes. I'll try compiling it the next time.

@tobox
Copy link

tobox commented Dec 13, 2018

Whats the current status of this? I have just compiled the development branch (Sonoff-Tasmota 6.3.0.17) and connected a SDS011, and the sensor seems to send readings continuously:


23:34:03 HTP: Main Menu
23:34:06 SER: Received AA C0 2D 00 57 00 1D 76 17 AB
23:34:09 SER: Received AA C0 2D 00 57 00 1D 76 17 AB
23:34:12 SER: Received AA C0 2D 00 57 00 1D 76 17 AB
23:34:15 SER: Received AA C0 2D 00 57 00 1D 76 17 AB
23:34:18 SER: Received AA C0 2D 00 57 00 1D 76 17 AB
23:34:21 SER: Received AA C0 2D 00 57 00 1D 76 17 AB

The values are plausible, but I am worried about the sensor lifetime. My other dust sensor (running luftdaten.info firmware) seems to be blinking only every few minutes, while it is blinking every few seconds with tasmota.

@tobox
Copy link

tobox commented Dec 13, 2018

Well... Maybe it is working correctly, and the LED is just blinking for serial activity. The sensor seems to shut down properly, the fan is off most of the time. Maybe I was just to impatient after startup.

@ascillato
Copy link
Contributor

Whats the current status of this?

The status is that this feature is merged into Tasmota since 10 sep 2018 and working fine.

You can "tune" the working period from my_user_config.h file in the line:

#define WORKING_PERIOD 5 // Working period of the SDS Sensor, Takes a reading every X Minutes

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

Successfully merging this pull request may close these issues.

None yet

5 participants