Search found 5 matches

by jdbrouwer
Sunday 13 March 2016 12:16
Forum: LUA
Topic: Stop Lua script when switch is operated manually
Replies: 8
Views: 2185

Re: Stop Lua script when switch is operated manually

Thanks Jannl,

Using the lastupdated time, solved my issue!
by jdbrouwer
Thursday 10 March 2016 14:23
Forum: LUA
Topic: Stop Lua script when switch is operated manually
Replies: 8
Views: 2185

Re: Stop Lua script when switch is operated manually

Won't this call be executed when the script changes the value of this same device?
by jdbrouwer
Thursday 10 March 2016 13:46
Forum: LUA
Topic: Stop Lua script when switch is operated manually
Replies: 8
Views: 2185

Re: Stop Lua script when switch is operated manually

I already have a virtual switch that makes the script run, or prevent it from running. The only question is, how do I toggle this virtual switch using a button that is connected to one of the dimmers that is adjusted within the script? In other terms, how do I see whether a script, or a button-press ...
by jdbrouwer
Thursday 10 March 2016 13:17
Forum: LUA
Topic: Stop Lua script when switch is operated manually
Replies: 8
Views: 2185

Re: Stop Lua script when switch is operated manually

Could you explain what you mean with these different variables? Of course, the code mentioned above is not the actual script. The idea is to let a script set dimmer values during half an hour (one setting per minute) before sunset till sunset. When a button is pressed during this period, I would ...
by jdbrouwer
Thursday 10 March 2016 11:04
Forum: LUA
Topic: Stop Lua script when switch is operated manually
Replies: 8
Views: 2185

Stop Lua script when switch is operated manually

Being quite new to Domoticz, and a complete beginner in scripting, I run into a difficulty. Is it possible to stop a script whenever one of the involved devices is used manually? In order to distinguish a scripted and manual devicechange ,I tried by setting a uservariable 'Scripting' to On and Off ...