Routines wont trigger all the time


I have a issue with scenes, I have created a few that work every time but others work randomly.

The ones that work all/most of the time are the ones that do thing when someone arrives or leaves ether with a cell phone or smart-tag. ie. when everyone leaves the routine sets the heat turns off the lights and arms the security and vice versa when someone arrives.

The ones that randomly work are the ones that are set by time. ie at 10pm M-F turn off the heat turn off the lights and set the alarm to “Stay” and at 6am turn the heat back up turn switch x on and set the alarm to home etc.

Should I be programming this different or using Smart Apps instead of routines? Or does anyone have a idea on how I can fix this silly thing to be more dependable?