is it possible to collect the temperature data from different temp sensors and store / show them in a custom sensor?
i have 3 temp sensors which shows temperature data from my Nas (CPU / HDD1 & HDD2).
my goal is to present this data in one sensor. Main reason is to save space on screen
I'm not a programmer.. found a little script and was trying a bit. With no luck..
svdhaar wrote: Monday 22 February 2021 15:50
my goal is to present this data in one sensor. Main reason is to save space on screen
On what screen? You add a device that will also be visible on a screen. So you go from 3 to 4 devices?
anyone with some tips?
A custom sensor can only display one value so you could average the 3 temperatures but not display all 3.
You could use a text sensor to display multiple values
svdhaar wrote: Monday 22 February 2021 15:50
my goal is to present this data in one sensor. Main reason is to save space on screen
On what screen? You add a device that will also be visible on a screen. So you go from 3 to 4 devices?
anyone with some tips?
A custom sensor can only display one value so you could average the 3 temperatures but not display all 3.
You could use a text sensor to display multiple values
Do you have an coding example?
i'm using aurora which makes the graphic a bit nicer. ultimate goal is to screw an ipad onto the wall.
as you can see i have NAS sensors shoing data. i would like to add some more.
6 items is the max. thats why i would like to combine the 3 temp values in one sensor.
local text =
dz.utils.round(temphd1.temperature) ..'°C\n' ..
dz.utils.round(temphd2.temperature) ..'°C\n' ..
dz.utils.round(Temptest.temperature) .. '°C'
Thank you!!
I would like to perform this arithmic on my internet speed sensors. Those are custom sensors.
Where can i find the needed atributes? i've tried .values, with no luck : attempt to perform arithmetic on a nil value (local 'x')
svdhaar wrote: Tuesday 23 February 2021 9:43
I would like to perform this arithmic on my internet speed sensors. Those are custom sensors.
Where can i find the needed atributes? i've tried .values, with no luck : attempt to perform arithmetic on a nil value (local 'x')
Did you try to find it in the https://www.domoticz.com/wiki/DzVents:_ ... nts wiki ?
There you will see that the attributes name is "sensorValue" (version >= 3.0.11) if you are on an older build you can try sValue or rawData[1]
svdhaar wrote: Tuesday 23 February 2021 9:43
I would like to perform this arithmic on my internet speed sensors. Those are custom sensors.
Where can i find the needed atributes? i've tried .values, with no luck : attempt to perform arithmetic on a nil value (local 'x')
Did you try to find it in the https://www.domoticz.com/wiki/DzVents:_ ... nts wiki ?
There you will see that the attributes name is "sensorValue" (version >= 3.0.11) if you are on an older build you can try sValue or rawData[1]
thx, wil use this wiki site before posting questions
i'm using domo 2020.1
i've added .sensorValue attribute. that returns an error