Motion activated light is mostly dimmed

I used the Motion activaed light blueprint to automate my kitchen (ikea tradfri kitchen lights).
But sometimes, when the motion activates the light, the light is turned on but it’s dimmed down.
Also, there’s an automation for the ikea tradfri switch to switch the kitchen lights.

I have figured out that the light is always dimmed if the light was before switched off by the switch. If it’s switched off by the automation, it’s working fine.

Here’s the configuration of the automation:

alias: Kitchen motion
description: ""
use_blueprint:
  path: homeassistant/motion_light.yaml
  input:
    motion_entity: binary_sensor.sonoff_motionsensor_2_iaszone
    no_motion_wait: 180
    light_target:
      entity_id: light.kitchen_light_driver_1_light

What do you else need to help me understand this issue?
Also, I should say I’m not very into configuring home assistant because I’ve had no time to dig into that.
Thanks for your help guys!

I think it would be better if you used the below blueprint. It will give you options to select brightness and more.

Click the badge to import this Blueprint:
Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Works great, thanks!