Pushing multiple values to Virtual sensor

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
beic
Posts: 5
Joined: Friday 16 September 2016 22:22
Target OS: Windows
Domoticz version: 2004.6
Contact:

Pushing multiple values to Virtual sensor

Post 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
User avatar
waltervl
Posts: 5770
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Pushing multiple values to Virtual sensor

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
beic
Posts: 5
Joined: Friday 16 September 2016 22:22
Target OS: Windows
Domoticz version: 2004.6
Contact:

Re: Pushing multiple values to Virtual sensor

Post 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.
User avatar
waltervl
Posts: 5770
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Pushing multiple values to Virtual sensor

Post by waltervl »

No, there is not such a sensor in Domoticz.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
beic
Posts: 5
Joined: Friday 16 September 2016 22:22
Target OS: Windows
Domoticz version: 2004.6
Contact:

Re: Pushing multiple values to Virtual sensor

Post by beic »

It would be really nice to have that kind of sensor type.
HvdW
Posts: 600
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Pushing multiple values to Virtual sensor

Post 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 629 times
Bugs bug me.
User avatar
beic
Posts: 5
Joined: Friday 16 September 2016 22:22
Target OS: Windows
Domoticz version: 2004.6
Contact:

Re: Pushing multiple values to Virtual sensor

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

Who is online

Users browsing this forum: No registered users and 0 guests