Scene with motion detector and dimmed or full lights

Hello,

I would like to create a scene where a light is already on but dimmed, and if the motion sensor senses motion the light go’s to full and back to dimmed if no motion detected.
I have tryed a lot but I do not think this is possible.
Has anybody any idear on how to make this work?

thx

You can do it with IFTTT.