Just spent 3 hours writing FRP code to drive a motion activated light.
I loathe motion activated lights.
... But, it's probably good if your FRP home automation framework has good support for time varying events. So.