Reading Humidity Dummy sensor

Moderator: leecollings

Post Reply
usky73
Posts: 39
Joined: Saturday 07 November 2015 9:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: france
Contact:

Reading Humidity Dummy sensor

Post 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 ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest