Device id In LUA Scripts

Moderator: leecollings

Post Reply
jjdom
Posts: 12
Joined: Tuesday 26 July 2016 13:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: France
Contact:

Device id In LUA Scripts

Post by jjdom »

Hi All,

I would get the id of a device, or better I would like to find a device from its id.
How can I do ?
I tried with otherdevices_idx, but the function does not appear in my version.
I'd got this error in logs : 2016-07-26 12:56:27.707 Error: EventSystem: in Tests: Tests.lua:36: attempt to index global 'otherdevices_idx' (a nil value)
José
Domoticz raspberry pi
Version 3.4834
trixwood

Re: Device id In LUA Scripts

Post by trixwood »

Maybe upgrade?
User avatar
jvdz
Posts: 2269
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Device id In LUA Scripts

Post by jvdz »

What version are you running? It is available in the latest stable version.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
jjdom
Posts: 12
Joined: Tuesday 26 July 2016 13:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: France
Contact:

Re: Device id In LUA Scripts

Post by jjdom »

Thanks everybody

My version is 2.4351 on raspberry pi
I have upgraded last month
José
Domoticz raspberry pi
Version 3.4834
User avatar
jvdz
Posts: 2269
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Device id In LUA Scripts

Post by jvdz »

That doesn't sound like any recent version: https://github.com/domoticz/domoticz/bl ... istory.txt
Current stable version is : Version 3.4834 (March 2nd 2016)

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
jjdom
Posts: 12
Joined: Tuesday 26 July 2016 13:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: France
Contact:

Re: Device id In LUA Scripts

Post by jjdom »

Hi all,

So my upgrade method might be wrong.
Someone could tell me how to upgrade on raspberry pi II?
José
Domoticz raspberry pi
Version 3.4834
SweetPants

Re: Device id In LUA Scripts

Post by SweetPants »

jjdom wrote:Someone could tell me how to upgrade on raspberry pi II?
Search the forum, this has been handled many times
jjdom
Posts: 12
Joined: Tuesday 26 July 2016 13:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: France
Contact:

Re: Device id In LUA Scripts

Post by jjdom »

hi all,

after upgrade, my version is now 3.4834 and otherdevices_idx work fine

thanks a lot all
José
Domoticz raspberry pi
Version 3.4834
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest