nvalue vs. svalue

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
rickvanakkeren
Posts: 26
Joined: Thursday 03 December 2015 13:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

nvalue vs. svalue

Post by rickvanakkeren »

Hi all,

Can someone explain to me what the difference is between a nvalue and a svalue?

The reason I'm asking is when i'm looking in the API-URL's, most off the time 'nvalue=0' is in the URL and svalue is used. But not for all. For example, why does the Air Quality require a nvalue instead of a svalue?

Rick
SweetPants

Re: nvalue vs. svalue

Post by SweetPants »

I think it has to do with 'n'umerical and 's'tring values??
axello2
Posts: 11
Joined: Tuesday 25 April 2017 13:03
Target OS: OS X
Domoticz version:
Contact:

Re: nvalue vs. svalue

Post by axello2 »

Sounds plausible, but why are all the *numeric values* on the domoticz/out channel with the svalue# keyword?

Is this whole nvalue, stype, svalue1, svalue2 etc. documented somewhere? As I run into a snafu creating my own service.

It's mentioned on the http://www.domoticz.com/wiki/MQTT page, but not explained.
It is shown, but not explained in http://www.domoticz.com/wiki/Domoticz_API/JSON_URL
maho2nd
Posts: 3
Joined: Wednesday 24 May 2017 0:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: nvalue vs. svalue

Post by maho2nd »

I have the same question.

In the JSON-API sometimes the nvalue is used (Air quality) and most times the svalue is used (Temperature, etc.)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest