Automation runs on every update

Hello guys.
First, I’m totally new to HA - but read around…. Coming from an OpenHan installation….

I have a KNX outdoor Lux sensor, which sends data every 5 minutes…

When I create an automation to trigger on this one it will always turn on the lights if the lux < set point….
Is there a smart way handling this? I need a “Bit” value I can set to True when the lamp is set to “On” first time on the lux sensor - then the automation shall not run anymore as long as this bit is “True”

Use a numeric_state trigger with below: x. This will only trigger when the state falls below your configured value.
Otherwise you could use a input_boolean helper.