It would be a good idea to add checks for the time of day, for example, whether it’s daytime or nighttime.
This would allow scenes to be triggered based on the time of day.
For example,
My motion detector detects movement, if it’s daytime it will turn on the ceiling light based on the room’s brightness.
However, I would like this not to happen in the middle of the night, because if I have to get up and it lights up the room, it could wake up my partner.