![]() |
|
Getting KNX status - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Third Party (interfacing to Comfort) (https://www.comfortforums.com/forum-5.html) +--- Forum: KNX (EIB) (https://www.comfortforums.com/forum-12.html) +--- Thread: Getting KNX status (/thread-3504.html) |
- Guest - 09-03-2013 I recently put in some logic that would turn on the landing light after 8pm if movement was detected and then turn itself off again after 3 minutes. The issue is that with young kids, when they see the light come on, they wake up and start to cry. So is there anyway to have the follwoing after 8pm, the light will turn on using the PIR a user can turn the light off If PIR then detects movement immediately after, it will check the status of the knx switch to see if the switch had been turned off in the last 5 minutes. If it had then it does not turn on, if it had not then it turns on for 3 minutes. So is there anyway of knowing what the status of a knx location is at any one time (on off) and whether comfort can know if a light switch was pressed in a certain period of time via the knx bus? - ident - 09-04-2013 KNX group addresses are mapped to counters in Comfort (in KNX to Comfort page) ie if the state of the kNX group address changes, the state is sent to the counter, 0 for off, 255 for on and 1 to 254 for dim level At the same time this triggers a counter Response associated with that counter The response can start a timer for 5 minutes when the group address value has changed to 0 (off) You can test the state of the timer - if it is ON that means the timer is still running, if Off that means the timer is expired You can use this to write your logic. I hope this gives you an idea how to do it - Guest - 09-04-2013 thanks for this - do you have a sample code that I can use as a template/guide? - ident - 09-04-2013 KNX Light Counter Response If last counter value = 0 then Do Response Null (0) using Timer X for 3 minutes This means that if the light switch turned off (value 0) then start a timer for 3 minutes PIR Zone Response If Timer X =0 then Turn on Light for 5 minutes This means when the PIR is activated check the timer, if not running, then turn on light I hope this helps |