How to trigger a knx adress with an unifi "person detected" event

Hi,

I would like to build an outdoor alarm system.
When a person is detected trough one of our Unifi cameras it should set a knx adress to “true” and when the person left the property back to “false”

The first try works ok, but only for a short periode of time, then the knx adress gets stuck to “true”. I do not know why. The unifi entity changes back to “false”

knx

Can somebody help me, maybe there is a much better way than using expose:

expose:

- type: binary
  entity_id: binary_sensor.terasse_ost_4k_person_erkannt
  address: "4/5/0"
  default: false
  cooldown: 2

- type: binary
  entity_id: binary_sensor.terasse_sud_4k_person_erkannt
  address: "4/5/1"
  default: false
  cooldown: 2

- type: binary
  entity_id: binary_sensor.hausseite_sud_person_erkannt
  address: "4/5/2"
  default: false
  cooldown: 2

Thanks a lot
Mathias

Hi :wave:!
This looks perfectly fine. I’d suggest to have a look at a Group Monitor - maybe some other logic / device writes to those addresses too.

Hi, these adresses are only read by an “or” logic. It seemes to me, that the expose task does not do a reliable job

Do you see any Knx related messages in your logs?