This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

If Window = 1 then
#1
Hi Guys, 

I don't get it with eventbased script. I want to trigger only when the KNX object is set to 1. But it is not triggered when it is set to 0. I can't find a way to do this in the settings. 

If window is opened (not if it is closed) and front door is opened, then xyz....

Can you helf me with this configuration? 

Thanks 
Lenze
Reply
#2
Hi
Tag your door and window object and then create event based script triggered by this tag then make script like that

Code:
window = grp.getvalue('window object')
door = grp.getvalue('door object')


if (window and door) then
 --dosomething()
end
------------------------------
Ctrl+F5
Reply
#3
(22.02.2019, 14:52)Daniel. Wrote: Hi
Tag your door and window object and then create event based script triggered by this tag then make script like that

Code:
window = grp.getvalue('window object')
door = grp.getvalue('door object')


if (window and door) then
 --dosomething()
end


thank you Daniel for your quick feedback. 

I just wonder which KNX group address I use for the trigger? 

so the trigger would also start the script when the door is closed. But the If does not execute anything. 

Is this the basic procedure with the logic machine?
Reply
#4
(22.02.2019, 14:58)lenze90 Wrote:
(22.02.2019, 14:52)Daniel. Wrote: Hi
Tag your door and window object and then create event based script triggered by this tag then make script like that

Code:
window = grp.getvalue('window object')
door = grp.getvalue('door object')


if (window and door) then
 --dosomething()
end


thank you Daniel for your quick feedback. 

I just wonder which KNX group address I use for the trigger? 

so the trigger would also start the script when the door is closed. But the If does not execute anything. 

Is this the basic procedure with the logic machine?
Not KNX group only the TAG I asked you to create. This way script will run each time when window or the door group will receive telegram.
------------------------------
Ctrl+F5
Reply
#5
but I have to specify a group address when I create an event script? Or what do you mean by TAG?
Reply
#6
Do it like that
https://www.screencast.com/t/O92BvSwo2
------------------------------
Ctrl+F5
Reply
#7
(22.02.2019, 16:21)Daniel. Wrote: Do it like that
https://www.screencast.com/t/O92BvSwo2


Daniel. Thank you so much! :-)
Reply
#8
(22.02.2019, 16:21)Daniel. Wrote: Do it like that
https://www.screencast.com/t/O92BvSwo2


You nailed it  Big Grin
Reply


Forum Jump: