Required fields to change a user variable from JSON

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
flabrosse
Posts: 18
Joined: Thursday 07 July 2016 20:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Required fields to change a user variable from JSON

Post by flabrosse »

Hi,

The documentation of the JSON interface states that the name of the variable is required when updating the value of the variable. I have seen examples that also use the idx, and posts that hint that both are necessary. My tests show that only the name is required (and the new value of course).

Why can't we use only the idx of the variable rather than the name? Having to use the name means that if I want to change the variable name I have to modify all the programs that access that variable via JSON, including having to reflash some devices that use it. The name is much more likely to be changed, during some refactoring for example, than the idx.

Could this feature be implemented?

Cheers,

Fred
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest