Page 1 of 1

Reading Humidity Dummy sensor

Posted: Wednesday 11 November 2015 12:04
by usky73
Hi all

I am using a dataloger to read humidity & temperature.
I have used dummy devices + json solution to update the sensors values, and it works fine.

I am trying to merge humidity & temperature in the same sensor with a LUA script. My idea is to read temp & humidity values and to push them on a new dummy devie (Temp+Humid).
I found how to read the dummy temp value, how to write the values in the new dummy combined sensor.

But I did not succeed to read the Humidity dummy sensor value.

Here is my code :

Code: Select all

sensorhumid = otherdevices_svalues[sensorh]
Where sensorh is the sensor name 'bathroom humidity 12345'
This function return the HUM_STAT but not the Humidity level...

Any idea ?