2 UpdateDevice commands in 1 script

Moderator: leecollings

Post Reply
manjh
Posts: 749
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

2 UpdateDevice commands in 1 script

Post by manjh »

I want to issue two consecutive updatedevice commands (for two different devices) in one single LUA script, and can't get it to work.
It seems that only the last issued command runs.
Is there a way to do this?
Hans
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: 2 UpdateDevice commands in 1 script

Post by G3rard »

Check viewtopic.php?t=17058.
It's explained in the wiki.
Not using Domoticz anymore
manjh
Posts: 749
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: 2 UpdateDevice commands in 1 script

Post by manjh »

G3rard wrote:Check viewtopic.php?t=17058.
It's explained in the wiki.
Thanks, that solved it.
Before asking this question I had already searched the Wiki, but could not find any result.
But with the examples in this topic I was able to understand the method and have applied it to my script.
Learning every day!!! :)
Hans
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: 2 UpdateDevice commands in 1 script

Post by qwerk »

I had the same problem.
Just wrote my first little function.

thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest