Page 1 of 1
Device id In LUA Scripts
Posted: Tuesday 26 July 2016 13:59
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)
Re: Device id In LUA Scripts
Posted: Tuesday 26 July 2016 14:18
by trixwood
Maybe upgrade?
Re: Device id In LUA Scripts
Posted: Tuesday 26 July 2016 17:14
by jvdz
What version are you running? It is available in the latest stable version.
Jos
Re: Device id In LUA Scripts
Posted: Tuesday 26 July 2016 18:54
by jjdom
Thanks everybody
My version is 2.4351 on raspberry pi
I have upgraded last month
Re: Device id In LUA Scripts
Posted: Tuesday 26 July 2016 19:08
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
Re: Device id In LUA Scripts
Posted: Wednesday 27 July 2016 8:01
by jjdom
Hi all,
So my upgrade method might be wrong.
Someone could tell me how to upgrade on raspberry pi II?
Re: Device id In LUA Scripts
Posted: Wednesday 27 July 2016 8:07
by SweetPants
jjdom wrote:Someone could tell me how to upgrade on raspberry pi II?
Search the forum, this has been handled many times
Re: Device id In LUA Scripts
Posted: Wednesday 27 July 2016 23:54
by jjdom
hi all,
after upgrade, my version is now 3.4834 and otherdevices_idx work fine
thanks a lot all