as you have the 2nd item on the same knx channel, they are always hard linked.
via knx itself, in your current setup you do not know, if it was triggered via wallswitch or the zigbee2mqtt presence, right?
so that sounds really like something like rules for myself..
or: Design Pattern: Motion Sensor Timer
or: Design Pattern: Proxy Item
here would be some DSL rule code:
var Timer waittimer = null
rule "disable central light by motion after time"
when
Item zigbee2mqttpresencesensor received update (or changed from OFF to ON)
then
OfficeDirk_Light_Central .postUpdate(ON)
if(waittimer === null) {
waittimer = createTimer(now.plusSeconds(15), [|
// send alert
OfficeDirk_Light_Central .postUpdate(OFF)
waittimer = null // rest the timer variable so we know the timer is no longer running
])
}
// else if(zigbee2mqttpresencesensor == OFF){
// waittimer?.cancel // cancel the timer if it is running
// waittimer = null
// }
end