SDS011 dust sensor - dunt level and percentage norm

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
dgcracker
New user
Posts: 7
Joined: 19 Dec 2017, 11:06

SDS011 dust sensor - dunt level and percentage norm

#1 Post by dgcracker » 13 Mar 2018, 09:31

I have SDS011 dust sensor connected to Wemos mini D1 and LCD2004. It works perfect with ESP Easy firmware but I wonder how to display on LCD not only PM2.5 and PM10 level from SDS011 but also a percentage norm of PM2.5 and PM10. So on LCD I would like to see i.e. : PM2.5: 50ug 200%?
Now in LCD2004 line1 settings I use PM2.5: [SDS011#PM2.5]ug but I have no idea how to add also percentage norm?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: SDS011 dust sensor - dunt level and percentage norm

#2 Post by Shardan » 13 Mar 2018, 13:26

Hello,

it should be possible to use dummy variables and rules for that.
A dummy is configured like a task but set from rules instead from a sensor.
With the "taskvalueset" command you may use a formula to set the dummy variable.
Use the events generated from your dust sensor like "on SDS011#PM2.5 do"
and then make a taskvalueset with a formula like "SDS011#PM2.5 * 100 / 25"
(or "SDS011#PM2.5 * 4 for short) to fill the dummy variable.
The values from the dummy task can be used like any other task value for your display.

Maybe check the ESPEasy Wiki for rules and dummy variables.

Regards
Shardan
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests