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?
2 UpdateDevice commands in 1 script
Moderator: leecollings
- 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
Check viewtopic.php?t=17058.
It's explained in the wiki.
It's explained in the wiki.
Not using Domoticz anymore
-
- 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
Thanks, that solved it.G3rard wrote:Check viewtopic.php?t=17058.
It's explained in the wiki.
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
-
- 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
I had the same problem.
Just wrote my first little function.
thanks
Just wrote my first little function.
thanks
Who is online
Users browsing this forum: No registered users and 1 guest