Page 1 of 1

Help: LUA Script for sensor multiplyed by value

Posted: Monday 02 January 2017 20:25
by Lillios
Hey.

I would like some help making a dummy sensor.
I have a Co2 senor connected to my raspberry that is running Domoticz.

The value from the Co2 sensor is not showing up correct, and needs to be multiplyed by x50.

How do i type a LUA to write the value from that sensor and x50 to my Dummy?
The value in this screenshot should be 7,9x50=395ppm

I a complete novice on makeing scipts :roll:

Re: Help: LUA Script for sensor multiplyed by value

Posted: Sunday 12 February 2017 13:25
by ycahome
try something like this:

WattMetricKW = tonumber(WattMetric)/1000