Page 1 of 1

Idx instead of name for otherdevices, uservariables, ...

Posted: Tuesday 07 March 2017 7:11
by YellowSky
Hi everyone,
i would like to know if there is any way to recover a data as "otherdevices['Bedroom']" but with the idx instead to the name of the device (here Bedroom) to make easier the evolution of the code.

I search on the forum but i did not find anything

Re: Idx instead of name for otherdevices, uservariables, ...

Posted: Tuesday 07 March 2017 12:35
by jvdz
I gave an answer to a similar question here: http://domoticz.com/forum/viewtopic.php ... 330#p82593

Jos

Re: Idx instead of name for otherdevices, uservariables, ...

Posted: Thursday 09 March 2017 11:18
by YellowSky
Perfect, TY.
Moreover, it is quick < 1 ms

Re: Idx instead of name for otherdevices, uservariables, ...

Posted: Saturday 11 July 2020 17:28
by FloFlo
Hi everyone,

Very good solution for otherdevices.

For uservariable, how we can do to use IDX instead of the name.

Thank's