Page 1 of 1

SDS011 dust sensor - dunt level and percentage norm

Posted: 13 Mar 2018, 09:31
by dgcracker
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?

Re: SDS011 dust sensor - dunt level and percentage norm

Posted: 13 Mar 2018, 13:26
by Shardan
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