Timing Matters: Enhancing User Experience through Temporal Prediction in Smart Homes