LUA. Ist this working

Moderator: leecollings

Post Reply
gertlind1
Posts: 29
Joined: Wednesday 25 December 2013 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

LUA. Ist this working

Post by gertlind1 »

Either i have totally missed something on how it works or just doing it wrong.

I cant get below to work. Only the last commandArray gets updated.
If I remark the second commadArray the first one gets executed.

So, ist it possible to have several commandArrays to be executed?

Code: Select all

commandArray['UpdateDevice'] = '27|0|'..test
commandArray['UpdateDevice'] = '28|0|'..TempText..' '..test
return commandArray
Be nice to me :-)
---
Gert
User avatar
jcjames13009
Posts: 33
Joined: Monday 09 March 2015 15:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: France / Marseille
Contact:

Re: LUA. Ist this working

Post by jcjames13009 »

Hi

If I'm right you have to use:

Code: Select all

commandArray[1] = {['UpdateDevice'] = '27|0|'..test}
commandArray[2] = {['UpdateDevice'] = '28|0|'..TempText..' '..test}
JC
gertlind1
Posts: 29
Joined: Wednesday 25 December 2013 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LUA. Ist this working

Post by gertlind1 »

Thanks JC, worked perfectly.
---
Gert
User avatar
jcjames13009
Posts: 33
Joined: Monday 09 March 2015 15:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: France / Marseille
Contact:

Re: LUA. Ist this working

Post by jcjames13009 »

:D
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest