Page 1 of 1

Pushing multiple values to Virtual sensor

Posted: Wednesday 30 April 2025 14:48
by beic
Hi there,

Is there a way to push more than 3 values to the Virtual Sensor "Dummy (Does nothing, use for virtual switches only)"?

Currently I'm trying to use "Dummy (Does nothing, use for virtual switches only)" for Temperature, Humidity and Pressure and 2 additional "Dummy (Does nothing, use for virtual switches only)" for Humidex and THI separately.

But, I would like to push those 5 values in a single query Temperature, Humidity, Pressure, Humidex and THI, not in 3 separated queries.

Is that possible to do somehow?

Thank you for your answer,

Kind regards,
Viktor

Re: Pushing multiple values to Virtual sensor

Posted: Wednesday 30 April 2025 19:40
by waltervl
For a temp/Hum/bar you have to send the following parameters in one API call

Code: Select all

/json.htm?type=command&param=udevice&idx=IDX&nvalue=0&svalue=TEMP;HUM;HUM_STAT;BAR;BAR_FOR
TEMP = Temperature
HUM = Humidity
HUM_STAT = Humidity status
BAR = Barometric pressure
BAR_FOR = Barometer forecast

See for more info the API wiki page https://wiki.domoticz.com/Domoticz_API/ ... /barometer


I do not know what Humidex or THI is but the above mentioned parameters is all you can do. Also be aware you have to supply all values in one call to have the device display the correct values.

Re: Pushing multiple values to Virtual sensor

Posted: Wednesday 30 April 2025 20:35
by beic
Thank you, yes, I know that, currently I'm using in that way.

I thought that there might be a Virtual Sensor type that you could add "multiple sub sensors" of any type.

Re: Pushing multiple values to Virtual sensor

Posted: Wednesday 30 April 2025 22:18
by waltervl
No, there is not such a sensor in Domoticz.

Re: Pushing multiple values to Virtual sensor

Posted: Wednesday 30 April 2025 22:29
by beic
It would be really nice to have that kind of sensor type.

Re: Pushing multiple values to Virtual sensor

Posted: Thursday 01 May 2025 0:52
by HvdW
You can put whatever you want in a (dummy) text sensor.
Screenshot_20250501_005025_Firefox.jpg
Screenshot_20250501_005025_Firefox.jpg (155.59 KiB) Viewed 637 times

Re: Pushing multiple values to Virtual sensor

Posted: Thursday 01 May 2025 10:14
by beic
Nice one!

Could you please give me an example how could I put 5 different measurement into a single "url" text based Dummy sensor?

And how could I add them into 5 separated Chart?

Thank you! 8-)