Hi there,
This is probably a problem with time conditions and the limitations of HomeKit. HomeKit's day begins at 00:00 and ends at 23:59, and any time condition cannot cross the day boundary. So you will need two scenes (lights at 20%/100%) and three rules!
Example:
You want the lights go on with 100% from 7 AM until 10 PM. That's easy: If Motion detected (trigger) - after 7 am (time condition 1) AND before 10 pm (time condition 2) - scene lights 100%
The following rule won't work:
If Motion detected (trigger) - after 10 pm (time condition 1) AND before 7 am (time condition 2) - scene lights 20%
This rule will never trigger, because both time conditions have to be fulfilled in the same calendar day. There is no valid HomeKit time of day that is after 10 PM AND before 7 AM - this is a HomeKit bug/limitation. The workaround is to create two rules:
Rule 1: If Motion detected (trigger) - after 10 PM (time condition 1) AND before 11:59 AM (time condition 2) - scene lights 20%
-> This one will work between 10 pm and midnight
Rule 2: If Motion detected (trigger) - after 00:00 (time condition 1) AND before 7 AM (time condition 2) - scene lights 20%
-> This one will work between midnight and 7 AM
Hope this helps!
Adam