Idx instead of name for otherdevices, uservariables, ... Topic is solved

Moderator: leecollings

Post Reply
YellowSky
Posts: 65
Joined: Tuesday 12 May 2015 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Last
Location: Belgium
Contact:

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

Post 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
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post by jvdz »

I gave an answer to a similar question here: http://domoticz.com/forum/viewtopic.php ... 330#p82593

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
YellowSky
Posts: 65
Joined: Tuesday 12 May 2015 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Last
Location: Belgium
Contact:

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

Post by YellowSky »

Perfect, TY.
Moreover, it is quick < 1 ms
FloFlo
Posts: 1
Joined: Saturday 11 July 2020 17:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by FloFlo »

Hi everyone,

Very good solution for otherdevices.

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

Thank's
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest