Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting KNX status
#1
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?
Reply

#2
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
Reply

#3
thanks for this - do you have a sample code that I can use as a template/guide?
Reply

#4
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
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.