Help needed with automation

Ok guys, i have a aqara vibration sensor and a white V1 bulbbin my toilet. Now when opening/closing (vibration detected) the door the light goes on and when finished and opening/closing the door the light goes off( even my gateway light goes on and off). Now i like an automation like this: if time is 23.00-06.00 light needs to go on at 25% brightness an when finished light needs to go off. But from 06.00-23.00 light needs to go on at 75%. Can this be done and…how?