Home automation with KNX

I have installed KNX integration in HA. Also installed my project.

When I create a sensor, it switches my light on and off.

Then I thought I would create an automation system in conjunction with my presence detector. When presence is detected, it should switch a KNX address (light) to “1” and vice versa.

When I test the automation, everything works as desired.
Problem: When I leave the room, my presence detector switches to “Absent”, but there is no reaction from HA to the KNX address.

What am I doing wrong?

Translated with DeepL.com (free version)

Can’t help you without seeing the automation YAML code. (Use code tags).

You need another automation to turn it off.

Hi, welcome to the forum!

You have to also define a second trigger to switch the light off if the presence sensor goes to “absent”.